Comments (11)
I did the macro thing before seeing this issue. Hopefully it is user-friendy enough.
About the future, we were discussing with @jacquerie that we could use BibTeX as a master format for all TeX-related output, and generate the rest by running it through bibtex
(or rather pybtex
) with various style files.
from inspire.
cc: @tsgit
from inspire.
Alternatively one can protect these lines using LaTeX macros that can be toggled at the beginning of the produced output so that the user can just set a flag in order to display/hide each particular line.
from inspire.
the macros are a neat solution, but the cynic in me would say that users smart enough to understand and use the function of those macros would likely also know regexp well.
The CV format is one of several formats that should be generated with more flexibility from a common metaformat which I understand CSL will provide (minus the up-to-date citation count)
as for macros, something like this (untested)
\newif\ifcitationcount
\citationcountfalse
% \citationcounttrue
\newcommand{\showcitationcount}[1]{\ifcitationcount {#1} \fi}
\begin{document}
.....
\showcitationcount{2 citations counted in INSPIRE as of 24 Aug 2016}
mmh, looks quite complex and there need to be different macros for different comments and users are supposed to understand how to manipulate the preamble?
from inspire.
@kaplun
so maybe the simple unique prefix method suggested is preferable. What does Barbara think?
from inspire.
@tsgit yup that would be perfect. Basically only one change to safely amend 300 publication and toggle their display.
The issue with CSL (if I am understanding correctly) is that it's specific to HTML so for our use LaTeX-centric world is not so useful.
The template approach is not as complex as regexp because we could provide a well-documented template that would serve as live example (most physicists learn by example rather than studying the documentation). Additionally, in this proposal, we would preserve the template the physicist has amended, so in any moment she could have an up-to-date CV according to her desire. (her/she intending the generic physicist, not necessarily my wife
from inspire.
@kaplun pandoc can use CSL to format LaTeX bibliographies
from inspire.
@kaplun pandoc can use CSL to format LaTeX bibliographies
although this would be heavyweight for Legacy. I think some simple quick wins can be achieved without going full speed to CSL.
from inspire.
having a rich and flexible metaformat from which various output formats are generated has been discussed repeatedly. only for the latex output formats which are essentially formatted references is bibtex a good choice (and one could offer all kinds of bibstyles to format for specific journals, but isn't that like running bibtex for the users when they should know best themselves what the requirements of the target publisher are), otherwise I consider bibtex format itself an endpoint not a metaformat. It has limited @entry types, limited set of fields, restrictions on field content, no sense of ordering, etc.
so
from inspire.
Truth is that LaTeX is today the format used by HEP physicists in everything they do: papers, CVs, projects etc.
BibTeX is hence perfect for them, but also our LaTeX format are of high usability for those authors that have less skill or interest in LaTeX details and want just something that works.
HTML or text based formats are instead of little use, because they can't be really cut and paste in any useful external place. They are only nice to look at.
from inspire.
#260
inspirehep/invenio#377
inspirehep/invenio#379
inspirehep/invenio#380
resolve this issue
from inspire.
Related Issues (20)
- Add display format for HepNames awards HOT 9
- XME format should export full deleted record HOT 8
- What's up with FFT%%? HOT 13
- What to do with records with 0 pages? HOT 3
- The XME format switches 961__c and 961__x HOT 1
- Custom API to export ORCID,DOI association HOT 1
- multiple DOIs for a record mishandled by bst_arxiv_doi_update
- Authorxml check script seems not work properly
- Experiments: what's in 372__a? HOT 8
- Conferences: ill-formatted CNUMs HOT 3
- Institutions: is CORE in 690C or in 980? HOT 4
- CNUM generator is wrong when the starting date is incomplete HOT 6
- export accelerator in experiment XME HOT 1
- Exposing doctype instead of type in FFT in XME
- Google Scholar indexing issues HOT 6
- Journals: what's in 022__m? HOT 2
- A 773__0 is generated in XME even if one was already there
- Some records have empty XME HOT 2
- Fix CDS OAI harvest duplicate detection
- Make validation for dates more strict.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inspire.