chiehrosswang / trb_latex_tex Goto Github PK
View Code? Open in Web Editor NEWA LaTeX template for Transportation Research Board Annual Meeting papers
License: MIT License
A LaTeX template for Transportation Research Board Annual Meeting papers
License: MIT License
I don't know if this is an easy extension.. but is it possible to include text that is in \input{someOther.tex}
in the word count?
For some math statements, the line numbering appears to count an overlapping ghost line somewhere around the end of the align/gather/alignat statement.
\begin{linenomath}
\begin{alignat*}{3}
&\min_{x,h} \qquad && \sum_{(i,j) \in A} \int_0^{x_{ij}} t_{ij}(x) dx \\
&\text{subject to} \qquad && x_{ij} = \sum_{\pi \in \Pi} h^\pi \delta_{ij}^\pi &&\forall (i,j) \in A\\
& && \sum_{\pi \in \Pi^{rs}} h^\pi = d^{rs} &&\forall(r,s) \in Z^2 \\
& && h^\pi \geq 0 &&\forall \pi \in \Pi
\end{alignat*}
\end{linenomath}
where $A$ is the set of all links $(i,j)$ in the network
I've tested this with a few different equation environments (e.g. align
, flalign
), by dropping \\
, \hfill
, and \break
around the \end{alignat*}
and \end{linenomath}
statements, and commenting out the lines referenced in #13, but it didn't fix the issue.
Hi,
Thank you for solving my previous issue. If you don't mind I want to ask the following question.
Is this template according to the TRB 2019 rules (http://onlinepubs.trb.org/onlinepubs/am/infoforauthors.pdf), which says Figures will not be counted, font: times roman 10 pt, page: 8.5 x 11 (not A4), etc.
This is not an issue but wanted to confirm.
Thanks.
Hi,
I am using your TRB template. Thanks for making it public.
Unfortunate, it is throwing "Missing number, treated as zero. \maketitle" error.
I followed the steps as you said. I am using TL 2018 on macOS High Sierra (10.13.5), I have texcount & ActivePerl, and it is working at the terminal. The issue is arising when there is no corresponding pdf file. I just tried uncommenting line 37 of .tex file (\TotalWords{200}) for the first time compilation (it shows 200 words) and then uncommenting the same line and compile again to get the actual count. This is a manual way, can we make it automatic.
Thanks.
Hi!
Dose anyone knows why the reference format in the template is different with the official word?
Is that OK for submission?
Is it possible to include page numbers when citing? \trbcite[130]{citekey}
doesn't seem to work.
Licence should be added.
According to the README,
The previous version was built primarily for people using R, Sweave, and LaTeX. Therefore, this version is created for people who need a straight-forward LaTeX template for TRB papers.
And the details on how to use it are at
More instruction and details about the project can be found inside the trb_template.tex.
But the template still has R and sweave instructions.
https://github.com/chiehrosswang/TRB_LaTeX_tex/blob/master/trb_template.tex#L196
The instructions in the README
latexmk trb_template.tex -pdf -pvc -shell-escape
seems to work fine.
I'll send a pull request once I've verified that the other instructions work.
I would like to make a suggestion to avoid having to edit the .cls file in line 194. Currently, that line contains:
Word Count: \quickwordcount{trb_template}~words $+$ \total{table} table(s) $\times$ \@WordsPerTable\ $=$ \totalwordcount~words\\
My suggestion is modify the trbunofficial.cls
file to include a new command \thisfilename{...}
which would be used to provide the TeX file name to be included in line 194. Thus, in the LaTeX file preamble, one would include a line with:
\thisfilename{main} % main.tex is the file with the manuscript for TRB
The trbunofficial.cls
file would have to be modified to replace the current \renewcommand{\maketitle}
macro with this code:
\newcommand{\thisfilename}[1]{\newcommand{\@filename}{#1}}
\renewcommand{\maketitle}{%
\thispagestyle{empty}
\begin{flushleft}
{\MakeUppercase{\bfseries\@title}}\\
\hfill\break%
\hfill\break%
\hfill\break%
\@author\\
\hfill\break%
\hfill\break%
\if\@TotalWords 0
Word Count: \quickwordcount{\@filename}~words $+$ \total{table} table(s) $\times$ \@WordsPerTable\ $=$ \totalwordcount~words\\
\else
Word Count: \@TotalWords\ words $+$ \total{table} table(s) $\times$ \@WordsPerTable\ $=$ \the\numexpr\@TotalWords + \totvalue{table}*\@WordsPerTable~words\\
\fi
\hfill\break%
\hfill\break%
\hfill\break%
\hfill\break%
\hfill\break%
\hfill\break%
Submission Date: \today
\end{flushleft}
\newpage
}
I hope this would help.
While writing a paper I found that I need to give space (\newline,, etc.) between text and \begin{equation} and again one line space after \end{equation} then only we can see space otherwise equation starts immediately below the text. Why is this so? In normal article or paper, we can see space even without giving manual space. Thank you.
First of all, awesome work you have got here. Thank you very much. This will be the second year I am using this template and I can see it got (even) better.
One question: I do believe that the bibliographic references must be taken into account for the total word count, correct me if I am wrong. The current version of the template is not counting the references' text for the word count, or is it?
Thank you!
Kind regards.
Need to change the macro to make word count work in Overleaf
While searching for the source of missing line numbers, I realized that paragraphs followed immediately by an equation have no line number, but this is fixed when space is included. Another fix is to att following lines before \begin{document}
\let\oldequation\equation
\let\oldendequation\endequation
\renewenvironment{equation}
{\linenomathNonumbers\oldequation}
{\oldendequation\endlinenomath}
It will be nice if it is added to trbunofficial.cls.
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.