Giter Club home page Giter Club logo

trb_latex_tex's People

Contributors

akstrfn avatar chiehrosswang avatar gregmacfarlane avatar retorquere avatar shankari avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

trb_latex_tex's Issues

Overlapping/ghost line numbers with some equations

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

image

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.

TRB template 2019

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.

Missing number, treated as zero. \maketitle

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.

Complete overwrite of files

Wanted to update my template to follow this repo and some conflicts emerged. I proceeded with git blame to see when and why some of the changes occured and saw the commits 85d4b96 and 3461263. Why overwrite?

The template .tex file still refers to R and sweave

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.

Suggestion to improve WordCount (line 194)

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.

Space before and after equation

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.

Do references count for the total word count?

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.

Why doesn't line number a paragraph when it is followed by an indented equation?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.