# Tag Info

10

Use \and to separate authors. \documentclass{article} \title{Group Project - Project Specification} \author{Anna Laura \and John Batty \and John Friend \and Jack Cridland \and Kamil Lewinsky \and Leon Hassan \and Punit Shah \and Rowan Alexander} \begin{document} \maketitle \end{document} If you want more, look in to authblk package.

1

(I swear this must be a duplicate question, but I can't find one.) Use \cfrac: (Also, use \text{…} for math elements that are interpreted as text, such as \lim_{t\to\infty}C_{\text{Gasoline}=\infty}) \documentclass{article} \usepackage{amsmath} \begin{document} \cfrac{1}{T_{\text{ex}}} = ...

1

Using the scaled rule example the error is avoided if I switch to english (ie left to right) just locally. If wrapping your \includegraphics in {\selectlanguage{english}..} works then there is at least a workaround for the bug. If not, I'll delete this answer. I get no error from: \documentclass[10pt]{article} \usepackage{graphics} ...

5

The navigator package allows access to links, attachments and other PDF features in Plain TeX, LaTeX and ConteXt. If you add \input navigator to your preamble and \finishpdffile to the end of your document, you can attach a file to your document with \embeddedfile[<description>]{<object name>}[<alternate file name>]{<file>} ...

11

You're better served with expl3: \documentclass{article} \usepackage{amsmath,amssymb} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand{\makeabbrev}{mmm} { \yoruk_makeabbrev:nnn { #1 } { #2 } { #3 } } \cs_new_protected:Npn \yoruk_makeabbrev:nnn #1 #2 #3 { \clist_map_inline:nn { #3 } { \cs_new_protected:cpn { #2 } { #1 { ##1 } } } } ...

12

You need to expand and let LaTeX know that you mean a control sequence \documentclass{article} \usepackage{amssymb} \usepackage{pgffor} \foreach \x in {C,N,Q,Z,D,R,T}{\expandafter\xdef\csname\x\x\endcsname{\noexpand\mathbb{\x}}} \begin{document} \foreach \x in {C,N,Q,Z,D,R,T}{$\csname\x\x\endcsname$} \end{document}

7

The main point of this task is usage of pdfTeX primitives \pdfsavepos, \pdflastxpos, \pdflastypos. You can create a macro \saveposition which saves the actual position to the file \jobname.pos in the form: 1: 67.65254mm, 267.37009mm 2: 101.77405mm, 267.37009mm 3: 67.65254mm, 261.73753mm 4: 101.77405mm, 261.73753mm The number of the checkbox is here ...

0

Just for you information, I was working with TexLive 2013 and now the problem has been solved by installing TexLive 2014. All I had to do was to be sure that the associated editor to open .tex files was TexWorks 2014 and not TexWorks2013. To verify which editor is used, it is enough to open TexWorks and go to Help->Resources and Settings And see what ...

19

Here is a possible solution via TikZ: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \newcommand\mybox{% \begin{tikzpicture}[remember picture] \draw (0,0) rectangle (.6em,.6em); \path let \p1=($(.3em,.3em) - (current page.south west)$) in \pgfextra{ \pgfmathsetmacro\xpos{\x1/1cm} \pgfmathsetmacro\ypos{\y1/1cm} ...

35

Use \fbox{% \pdfsavepos\write-1{hello is at \the\pdflastxpos,\the\pdflastypos}% hello% } and the log file will have the coordinates in scaled points The above produces a line such as the following in the log file: hello is at 10005380,43282099

3

While creating my minimal working example, I realized my mistake. LaTeX displays the table of contents using the .toc file that is built on the first pass through the document. Therefore, the first pass will not include the chapters that were not processed from before. To fix this issue, run the LaTeX command used to process the .tex file again. This will ...

3

You can use the lscape package: Code: \documentclass{article} \usepackage{lscape} \usepackage{lipsum} \begin{document} \lipsum[1] \begin{landscape} \lipsum[1] \end{landscape} \end{document}

1

Thanks to the egreg answer, i found another package to fix my problem : \documentclass{article} \usepackage{fp} \newcounter{r} \begin{document} \FPeval{\result}{round(10000 * 10.01,0)} \setcounter{r}{\result} \ther \end{document} Thank you for your help.

11

TeX uses fixed point binary arithmetic and calc uses this arithmetic that can't guarantee great accuracy. You get a better result using implementations of floating point numbers, for example the one in expl3: \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \DeclareExpandableDocumentCommand{\roundtointeger}{m} { \fp_eval:n { round ( #1, 0 ) } ...

0

I had this problem too after upgrading from texlive 2013 to texlive 2014. After adding \usepackage{XCharter} (notice the capital XC) in the preamble, I could compile my document again and use the Small Caps Bitstream Charter fonts I had bought.

8

The example if fixed by braces around the problematic UTF-8 character inside the text for decorate: text={|\myshift| T{ự} do} Otherwise the text would be scanned byte by byte and disrupting the multi-byte UTF-8 character.

2

Something is defining \G so you can insert \show\G at several points in your document or package and at each tex will stop and show the definition. The error message indicates that \G has an encoding specific command definition. My local tex tree has the following possibilities allrunes/ara.fd:\DeclareTextSymbol{\G}{LRA}{167} ...

2

Metapost is a declarative graphics language; the program describes the image but is not the image itself. You have to compile the mp file to produce the mps file which pdftex includes. Depending on your OS, something like this should do it: mpost image.mp This will produce a file image.1, which you rename image.mps to include it with pdftex. (There are ...

3

In the text section of the .pdf file \\ is interpreted correctly, but the compilation process complains about unallowed characters in PDFString. It's possible to force \texorpdfstring{\\}{^^J} with the TeX - primitive ^^J newline which at least is interpreted as a link break in the keywords section. In addition, the hyperref manual recommends to specify ...

2

The technique given in this answer solved my problem quite nicely. I created a file called 10pitch.map that contains the following lines: pcrr8r Courier10PitchBT-Roman " TeXBase1Encoding ReEncodeFont " <8r.enc <c0419bt_.pfb pcrr8rn Courier10PitchBT-Roman " .85 ExtendFont TeXBase1Encoding ReEncodeFont " <8r.enc <c0419bt_.pfb pcrro8r ...

2

Thanks to the helps from above, I find a solution for this. Install cm-super package in MiKTeX Start -> MiKTeX folder -> Maintenance (Admin) -> Package Manager (Admin) -> Search cm-super -> Install Update pdftex.map (if it doesn't take effect) Start Task Manager(Ctrl+Alt+Delete) -> File -> New Task (Run...) -> Type "cmd" and hit enter -> Run command ...

-1

It looks like your TeX-distribution might use bitmap fonts rather than postscript fonts. Postscript letters are somewhat like vector graphics, so they will scale up nicely, whereas bitmap letters can be compared to a raster image that will pixelate when scaled. If you still want to use Computer Modern, you might try the ae-package (optionally in conjunction ...

2

OK. I compiled and installed TiKZit in order to retrieve the rest of the default preamble. The only thing I don't know is what the definition of newstyle should be. I guess this is your own. Here, I've just made it the same as simple but in green rather than black. \documentclass{article} \usepackage[svgnames]{xcolor} \usepackage{tikz} ...

3

You need to declare the layers and the two missing styles. Not sure what the style defintions should be so I just set them to draw thick lines: Code: \documentclass{article} \usepackage{tikz} %% -------------------------------------- Declare the layers \pgfdeclarelayer{nodelayer} \pgfdeclarelayer{edgelayer} \pgfsetlayers{edgelayer,nodelayer,main} %% ...

0

In summary, all you have to do is to add /usr/texbin to the environment variable $PATH. Using Terminal you can do it in 3 steps: 1) Ensure that pdflatex command is installed in /usr/texbin mac:yourname$ ls /usr/texbin afm2tfm dvired initex luaotfload-tool mktexlsr simpdftex texluajitc allcm dvitomp ...

3

It makes no sense to view the dvi output. It cannot show rotations and also sometimes not the correct image size. Use always the pdf output which should be upside down and cropped. latex <file> dvips -o <file>.ps <file> ps2pdf -dAutoRotatePages=/None <file>.ps However, the easiest way is to run xelatex, it does the conversion ...

1

In general, make sure you have a new line before the \vspace (or \bigskip) command, for instance: This won't work: Worst case scenarios: \vspace{1cm} \begin{tabular}{|c|c|c|} This will: Worst case scenarios: \vspace{1cm} \begin{tabular}{|c|c|c|}.

4

You have too many characters! The cases environment is in math mode, as well as equation*, so you should type \begin{equation*} \theta = \begin{cases} \eta & \widehat{P} < \bar{P}\\ \eta & \widehat{P} > \bar{P} \end{cases} \label{eq: test} \end{equation*} If you want to add text to the side conditions, you can use ... 3 Here is a fontspec way to get the equals sign in a separate font in text mode, if you compile with LuaLaTeX or XeLaTeX. \documentclass{article} \usepackage{lmodern} \renewcommand*\familydefault{\sfdefault} % Use sans as base font \usepackage{fontspec} \newfontfamily{\mymathfont}{Latin Modern Math} % Family for math symbols ... 2 If I run pdfinfo -box on a PDF file generated by pdftex, I get the following information: Creator: TeX Producer: pdfTeX-1.40.15 CreationDate: Mon Oct 6 16:01:48 2014 ModDate: Mon Oct 6 16:01:48 2014 Tagged: no Form: none Pages: 1 Encrypted: no Page size: 595.276 x 841.89 pts (A4) (rotated 0 ... 1 It's possible that you must enclose between \makeatletter and \makeatother definitions that contain @. \documentclass{article} \usepackage{xpunctuate} \DeclareRobustCommand\eg{e.g\xperiod} %% Standard Conditions symbol \makeatletter \providecommand\barcirc{\mathpalette\@barred\circ}% \def\@barred#1#2{\ooalign{\hfil#1-$\hfil\cr\hfil$#1#2\$\hfil\cr}}% ...

2

The \mintinline command is provided by the development version of minted, not the one in the current TeX distributions. If you want to use it, manually install the development version. You can instead use pythontex: \documentclass{book} \usepackage{pythontex} \begin{document} Abc \pygment{vala}|main| def \end{document} This requires running pythontex ...

1

A typical italian preamble may instead be \documentclass[a4paper]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[italian]{babel} than followed by any \begin{document} Hello \end{document} (first comment by Ian Thompson is definitely right). ...but I am sure that, by today, you've learnt better than me the difference between ...

5

If you call pdflatex with the command line option -halt-on-error, the process will terminate at the first error.

5

The simple answer is, I'm afraid, that there does not appear to be an elsbook document class (or any other book-type document class provided by Elsevier).

5

No. The \special there is not understood by tex at all it is just passed verbatim into the dvi file to whatever program process that file. That particular syntax is for the dvips driver, it would not necessarily be understood by other dvi to ps or dvi to pdf/svg/... programs and viewers. You can of course hide the platform differences behind macros giving ...

5

The tex executable runs the “original Knuth TeX”, whereas \pdfpagewidth is a pdftex primitive. The usual \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname pdfpagewidth\endcsname\relax \else \pdfpagewidth 8.5 truein \pdfpageheight 11 truein \fi will do. After it, \pdfpagewidth and \pdfpageheight will not be ...

1

I think there may be some confusion about the purpose and structure of the Main and optional arguments of the \bibitem macro. The main argument of \bibitem (the material in curly braces) -- here: EnviroTrack -- is the "key", i.e., what one writes as the argument of a \cite (or \citet, \citet*, etc) command. The optional argument of \bibitem -- the ...

1

Using \color directly is tricky, as it will change the consecutive colors globally. It's better to use a \begingroup...\endgroup pair around a \color change, in this case, within the redefined \headrule command. This removes the error message and should be failsafe. The global color stack for the document is not changed then. \documentclass{article} ...

2

Here is a complementary list of fonts that can be used with pdfLaTeX/XeLaTeX/LuaLaTeX, that are not mentioned in the above link: Sans serif fonts: Cabin, Linux Biolinum, MyriadPro. Serif fonts: Heuristica and Erewhon (based on Adobe Utopia), ebgaramond, Xcharter (based on Bitstream Charter), Linux Libertine, MinionPro. All these font are available in ...

1

I understand that math can take longer than straight text, due to the many additional considerations that are involved. Including images (other than pdf or mps) format will also increase compile times, because these need to be processed rather than simply dropped into the code. But TeX is a typesetting engine, and while it's Turing-complete, things that ...

3

There's a list of available T2A fonts with Cyrillic glyphs here. You can test them and choose the one you like best. Here's an example. \documentclass{article} \usepackage[T2A]{fontenc} \usepackage[utf8]{inputenc} \usepackage{droid} % <- one of the fonts with T2A encoding \begin{document} \noindent А а Б б В в Г г Д д Е е Ж ж З ...

1

I have changed your given MWE a little bit, for example I changes the order of package calls, and added some missing commands to correct your bookmarks. Please compare the new MWE with your own. Then you will see were I had to change your code to get the result you wanted. BTW: I changed all \newpage to \clearpage. MWE: \RequirePackage{filecontents} ...

2

I finally found a solution using Metafont to create those dashed parenthesis. Here's my code (wich could certainly be improved) to use with 12pt fonts: u#:=23.5/36pt#; define_pixels(u); beginchar(40,7u#,16u#,5u#);"left dashed parenthesis"; x1=x9=6.5u; x2=x8;x3=x7; x4=x6; bot y1=-5u; top y9=h; z10=(17u,5.5u); (x2,y2)=(x1,y1) rotatedaround (z10,-8.5); ...

9

There is a new package on CTAN: Anders O.F. Hendrickson submitted the qrcode package. Version number: 1.0 License type: lppl1.3 Summary description: Generate QR codes in LaTeX. Announcement text: This package generates Quick Response (QR) codes in LaTeX, without the need for pstricks or any other graphics package. ...

0

my guess is that you have the texlive package installed, but not texlive-full. If this is true, there are two options: install texlive-full with apt-get or your favorite package managers. It will bring you most packages there are, but a few released only recently. if you go for the installation of TeX Live from TUG, install to the default, and then adapt ...

3

Here, I put it all the way to the right. Is that desired? This was the key line: \section{Selected Projects\hfill\scriptsize\textcolor{gray}{small text goes here}} Here is the MWE: \documentclass[12pt,letterpaper,sans]{moderncv} % moderncv themes \moderncvstyle{banking} % style options are 'casual' (default), ...

0

If you install the Debian package texlive through the package manager (apt, aptitude), then you should not set the path. If you install separately by downloading tlmgr from the TeXLive website, then you do need to set the path (preferably in ~/.profile, not ~/.bashrc, but opinions differ).

Top 50 recent answers are included