]> hydra-www.ietfng.org Git - mcv-academic/commitdiff
Swap @thesis for @cvthesis to avoid clobbering upstream defns
authorNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Wed, 29 Nov 2017 08:57:08 +0000 (03:57 -0500)
committerNathaniel Wesley Filardo <nwfilardo@gmail.com>
Sat, 19 Mar 2022 14:57:20 +0000 (14:57 +0000)
In particular, I want to use @thesis for my actual thesis, as I pull its
BibTeX entry directly.

(This change originally used @guidethesis but Adin correctly notes in
https://gitlab.com/adin/mcv-academic/-/merge_requests/2 that being so
flavorful might be problematic, so use @cvthesis instead.)

README.md
academic.sty
cv.bbx
cv.dbx
example/cvdata.bib

index e4b0c8e8cdbf3105db996c3cd2a6ab7bddeedfab..5eecbde5261cb2dc5b0a472dccb81cfeba031071 100644 (file)
--- a/README.md
+++ b/README.md
@@ -169,7 +169,7 @@ The style defines the following entries (or types of data)
   * `year`: the starting year of the project.  This field is an integer number representing the year.
   * `month`: the starting month of the project.  This field should be a month that `biblatex` can understand (that is, a number or a three letter month representation).
 
-- **Thesis**.  Refers to the theses you guided.  It supports the following fields
+- **cvthesis**.  Refers to the theses you guided.  It supports the following fields
   * `author`: the student (author) of the theses that you guided.  This field is a string.
   * `title`: the title of the thesis.  This field is a string.
   * `date`: the date of the thesis.  This field is a date from `biblatex`.
@@ -371,4 +371,4 @@ I will like to thank the community of [TeX Stack Exchange](tex-sx), which helped
 [moderncv]: https://www.ctan.org/tex-archive/macros/latex/contrib/moderncv/?lang=en
 [babel]: https://www.ctan.org/pkg/babel?lang=en
 [biblatex]: https://www.ctan.org/pkg/biblatex?lang=en
-[tex-sx]: http://tex.stackexchange.com/
\ No newline at end of file
+[tex-sx]: http://tex.stackexchange.com/
index 0c51d1962047565c68ed878c297fb666499b8799..c4cbb3fabb412d3dd92bae2379b5a01c85025fa8 100644 (file)
       \pertype{position}
       \pertype{project}
       \pertype{course}
-      \pertype{thesis}
+      \pertype{cvthesis}
       \pertype{committee}
       \pertype{cvmisc}
       \step[fieldsource=date, match=\regexp{\A([0-9]{4}-[0-9]{2}-[0-9]{2})\Z}, replace=\regexp{$1/$1}]
 \defprint{course}{courses}
 \defprint{study}{studies}
 \defprint{position}{positions}
-\defprint{thesis}{theses}
+\defprint{cvthesis}{theses}
 \defprint[resetnumbers=true]{project}{projects}
 \defprint{cvmisc}{cvmiscs}
 \defprint[resetnumbers=true]{presentation}{presentations}
diff --git a/cv.bbx b/cv.bbx
index 299503f5d00b84d3bc3fa3f253146ad7dac0d0a3..4936e7f5bf14bbe14a97d737ef70cae7ea1f5496 100644 (file)
--- a/cv.bbx
+++ b/cv.bbx
@@ -89,7 +89,7 @@
 
 \DeclareBibliographyAlias{study}{cventry}
 
-\DeclareBibliographyAlias{thesis}{cventry}
+\DeclareBibliographyAlias{cvthesis}{cventry}
 
 \DeclareBibliographyAlias{cvmisc}{cventry}
 
 
 \DeclareFieldFormat[position]{title}{\mkbibbold{\usebibmacro{field-bibstring}{#1}}}
 
-\DeclareFieldFormat[thesis]{level}{\usebibmacro{field-bibstring}{#1}}
+\DeclareFieldFormat[cvthesis]{level}{\usebibmacro{field-bibstring}{#1}}
 
 
 \DeclareFieldFormat[project]{role}{\mkbibbold{\usebibmacro{field-bibstring}{#1}}}
diff --git a/cv.dbx b/cv.dbx
index 38aa278fa46c13870a69a458fe18b9330ca582fe..f733eafd52118d4d30e1712d2ddba5cf5b772843 100644 (file)
--- a/cv.dbx
+++ b/cv.dbx
@@ -23,7 +23,7 @@
 \DeclareDatamodelFields[type=list, datatype=literal]{dates}
 
 % Entries
-\DeclareDatamodelEntrytypes{course, cvmisc, position, project, study, thesis, presentation}
+\DeclareDatamodelEntrytypes{course, cvmisc, position, project, study, cvthesis, presentation}
 
 % Data models
 \DeclareLocalizedDatamodelEntryfields[course]{%
@@ -73,7 +73,7 @@
   note%
 }
 
-\DeclareLocalizedDatamodelEntryfields[thesis]{%
+\DeclareLocalizedDatamodelEntryfields[cvthesis]{%
   author,%
   date,%
   organization,%
index 5940d5e9ab95343c487d19c8f5fd531ffc0b3892..8047525cfa04488026129b9804cddca84779d40c 100644 (file)
@@ -112,7 +112,7 @@ fancy
 
 % Theses guided
 
-@Thesis{doe2010,
+@GuideThesis{doe2010,
   author = {Doe, John Jr.},
   date={2010-01-01/2010-02-01},
   title-en = {On time traveling and paradoxes},
@@ -126,7 +126,7 @@ fancy
 }
 
 
-@Thesis{doe2011,
+@GuideThesis{doe2011,
   author = {Doe, John Jr.},
   date={2010-10-01/2011-10-21},
   title-en = {On time traveling and paradoxes II},
@@ -254,4 +254,4 @@ fancy
   keywords={international},
   eventtitle = {Time Travel Group},
   location={Somewhere around here}
-}
\ No newline at end of file
+}