All Questions

627 views

“Extra \fi” errors in equation environment with savetrees

I get the Extra \fi error for the line in the following code. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{savetrees} \usepackage{amsmath} \begin{document} ...
635 views

Bibliography appears as an appendix in ToC in LyX

I want to place the Bibliography after the appendices. So in LyX I mark "Start Appendix Here", insert the appendices, and after that the Bibliography. Now, all appendices appear in the Table of ...
102 views

vbox overflow when using TitleGM causing a blank page to preceed the title page

I'm getting a blank page that precedes my title page, and I suspect that it is due to the vbox overflow warning that I'm getting. The problem is that I don't know how to properly adjust the vbox ...
178 views

How can I float molecules in \chemfig around an element? (without the lines)

For example: I just want to show that the H2O molecules are attracted to the Carbon atom. I can't find a way to remove the lines connecting the Oxygens to the Carbons or how to extend the Hydrogens ...
238 views

automatic PDF bookmark manipulation

This is a follow-up question to PDF bookmark customization How is it possible, to set in an report/scrreprt all chapters with bold bookmarks in the pdf bookmarks? I've found a discussion about it (in ...
33 views

close appending to aliased newcommands [closed]

I have: \newcommand{\alias}[0]{POS} and use it as: ... \alias ... I want to sometimes pluralize it, output as: ...POSs... but this (obviously) doesn't work: ... \aliass ... nor does this: ...
270 views

Caption positioned at the side of the figure

I would like to have the caption of the Figure on the side of the figure. Plus I want to control caption width. Also, caption and Figure should be aligned all the way to the left and right of the ...
752 views

Handwritten math formula recognition to LaTeX [closed]

I am looking for a way to integrate handwritten math formula recognition (to LaTex) in my app. A good example of this can be seen here http://webdemo.visionobjects.com/equation.html?locale=default ...
370 views

two (or more) columns navigation in beamer sidebar

I have a long presentation which basically is a collection of exercises. Each excercise has its own subsection, shown in the sidebar, like this: \documentclass{beamer} \usepackage[utf8]{inputenc} ...
375 views

includepdf and tableofcontents without numbering

I try to include an entire pdf file with pdfpages but I will not use numbering in the table of contents. Here is a MWE, which illustrates the problem. \documentclass[a4paper]{scrreprt} ...
3k views

How to properly install and use a new font with LuaLaTeX?

I have problems trying to get new fonts to work when compiling with LuaLaTeX. I'm working on Mac and use TexShop (with the MacTeX package). It goes like this: I downloaded for example the Cardo ...
351 views

Extra alignment tab with longtable

I am using longtable and I am getting the error ! Extra alignment tab has been changed to \cr. I have attempted to fix it but nothing I have tried seems to be working. Below is the code for the table ...
2k views

Fractions with \dfrac cause compile error

I'm new to LyX. I'm writing my next homework with it to give it a try. My example code is below: % Preview source code %% LyX 2.0.5.1 created this file. For more info, see http://www.lyx.org/. %% ...
360 views

How does one change the babel language with the ClassicThesis style?

It's all in the title. The issue is simple, I just wish to change the language so that I can type in french using babel. The original languages are ngerman and american. I just want to replace the ...
263 views

Generating gradetables with parts using the exam class

I've just started using the exam class to typeset, well, an exam, and when using the \gradetable command to create the final grade table, it only shows me the points at the granularity of a question, ...
69 views

Best Practices For Including A Version Controlled File Across All Projects? [duplicate]

I am getting started with WinEdt 7.1 and TEX in general on a windows platform. I have a file where I've defined custom commands. Its current contents are: \newcommand{\avgE}{\bar{E}} ...
687 views

Folded Paper Shape TikZ

I am trying to find a shape like a paper title folded at top and with some lines, emulating a ruled paper to use in other tikz picture. I have already seen some, and I do think they are done with tikz ...
104 views

Writing macros on file defined at compilation time

This is a follow-up to this question. I have a LaTeX3 code that reads a file formatted as follows: <numberA> "<nameA>" <numberB> "<nameB>" <numberC> "<nameC>" ...
129 views

\showbox and log file

I want to parse the output of the \showbox command externally. Is it possible to let \showbox write to another file than the .log file? If not, is it possible to temporarily change the name of the ...
312 views

Set biblatex smartand to small caps

I want to apply small caps to the final name delimiter using BibLaTeX. I tried the following \documentclass{article} \usepackage[spanish,es-minimal]{babel} \usepackage[style=american]{csquotes} ...
264 views

centering a \hbox

I'm trying to center a collection of nested \hbox and \vbox without any succes :-( Here is the code I use: \begin{figure}[h] \center{ \vbox{\hbox{% \includegraphics{imageA}~% ...
85 views

Parsing various types of page ranges with a single command

Having to treat a considerable amount of page ranges, I'd like to have a robust and simple command that would parse and print them correctly. The most simple case is e.g. 264,15-26 which ...
276 views

LaTeX tikz-timing - adjust fontsize independently for each row label

I would like to be able to make the label below (which I have made red) have text size equivalent to \tiny but I can not figure out how to do it? I have not been able to find anyone else trying to ...
179 views

Biblatex: online isbn versus print isbn

The following book is referenced through two distinct isbn numbers: the online isbn and the print isbn. Is there a way to reflect this with biblatex? @BOOK{AcaryBrogliato201011, title={Numerical ...
2k views

Elsarticle - number bibliography not working

I am trying to correctly format an article for Computers & Operations Research. They say I should use the "number" format to cite. I use elsarticle.cls and the documentation says that number ...
281 views

connect nodes that it looks like circle

I have 3 nodes placed on a circle. These nodes are differently shaped. I want to connect them and want the arrows to look like a circle, because it is a repeating process. I can connect them with ...
239 views

ConTeXt doesn't implement some Knuth TeX primitives?

I try to use new TeX format ConTeXt, but I find that some TeX primitives don't act any more. How sad I am when I find that. An simple example is that in plain TeX, we can set the spaces between ...
112 views

How to typeset superscript IPA characters

I'm using TIPA and I'm trying to do something like this: \textipa{/bI"wIl.d@r.IN/} Which works, but I want the @ character to be an upper index. How do I do this? I've tried this ...
818 views

fontspec: \setmainfont problem, bold/italic/bolditalic font error [closed]

A long time ago i posted about an error I occur when trying to set the mainfont using xelatex and the fontspec package, specifically the bold/italic/bolditalic fonts. My previous post from 2011 is ...
608 views

Draw a breaking ocean wave with Tikz?

I've just discovered this wonderful forum. After having tried for a while (and unsuccessfully) to draw a breaking ocean wave when approaching sore, I am asking anybody who might want to contribute ...
42 views

Is it possible to get the name of the referenced item together with a label?

If I define a figure, table, code listing or anything similar with a caption and a label, how can I get the item name together with the reference label? For example, if I define a figure: ...
308 views

Consider the following: \documentclass{article} \usepackage{pstricks-add} \begin{document} \begin{figure} \centering \begin{pspicture}(2.4,0.6) \rput(1.2,0.25){Springboldene} % ...
50 views

How to select all occurrences of a specified word in a string and append another word to each of them?

When using infix-RPN package, we can use \infixtoRPN to convert infix expression to RPN expression. The output of the conversion can be retrieved by invoking \RPN. \infixtoRPN{cos(x)+sin(x)}, for ...
134 views

Index with a combination of one and two columns

I am using the following to create my index file. heading_prefix "{\n\\bfseries\\color{black} " % insert in front of letter heading_suffix "\\hfil}\\nopagebreak\n" % append after letter ...
308 views

Add tooltip to postscript image using pdfmark ann

How can I add a mouse over 'tooltip' to a postscript image using pdfmark annotation please? I'm compiling a large PDF from several hundred postscript images and have a Perl script to automatically ...
124 views

Turn preamble font declaration into a “oneliner” to be used in Matlab

I was already using x and y, and needed something similar, but different so I declared the following in my preamble: \DeclareFontFamily{OT1}{pzc}{} \DeclareFontShape{OT1}{pzc}{m}{it}{<-> s * ...
131 views

Ceiling function within verbatim in latex

I am preparing a latex document. Inside the body of a function I need to use the ceiling function. How will I use the ceiling function inside verbatim? \begin{verbatim} Method a(b) . . ...
101 views

Export page numbers of references

I would like to export the page numbers of all the inner references of my document. How can one achieve this? Equivalently, how can we export the section/chapter number of all the inner references? ...
161 views

Using Coloured Dots for References

I'm writing a document which contains multiple copied entries of several online dictionaries. In order to make the references simple enough, I thought of assigning each dictionary a colour and to put ...
129 views

Indentation using the APA6 class [closed]

I'm having some trouble indenting paragraphs using apa6.cls. \indent does not indent the paragraph, and I have tried \setlength{\parindent}{5pt} after \maketitle. I am using manuscript mode ...
584 views

\RaggedRight makes document longer

I have a document carefully written to fit in 4 pages; but when I added a \raggedright (or \RaggedRight with use of the ragged2e package) the length gets longer. Furthermore, suddenly the output ...
171 views

Relative positioning of Lewis electrons in chemfig

I am defining a submolecule in chemfig (2,2'-bipyridine) and I want to show the lone pair of electrons on both the Nitrogens. (For those who care, I wish to show a coordination bond between the lone ...
2k views

How to force LaTeX not to break the line after a hyphen “-”?

With ~ we can enforce that no line break occures between two words. But this does not seem to work with special characters. I want LaTeX to enforce not to break the line after the - in (re-)creation. ...
418 views

Reference to my subfloats always reference to Fig 1a, 1b or 1c

I have a document where multiple figures with subfloats are included, like this one: \documentclass[pdftex, a4paper, oneside]{scrartcl} \usepackage[lofdepth,lotdepth]{subfig} \usepackage{graphicx} ...
42 views

I have a table of contents starting on page 3. I use \tableofcontents to generate it. My actual generated pdfs contents page looks like this contents..............3 chapter1...........6 ...
1k views

Top alignment of cell content in tabularx

I would like to align the content of each cell (of the first column) to the top. The approaches presented here did not apply. Maybe it has something to do with die tabular-environment inside the ...
477 views

Memoir: Increase header height for title page

I have to use a particular latex template. On the titlepage there is a logo in the header which is to high. Class memoir Warning: The material used in the headers is too large (78.7743pt) for ...
2k views

Drawing a triangle with rounded corners in TikZ

I'm trying to draw a simple equilateral triangle with rounded corners in Tikz. However, I can't get the rounded corners correct. I have the following MWE which draws the triangle: ...