All Questions

10 views

How to optimize this ad hoc code?

I just released a book with a deadline. My first job with LaTEX, very messy. I wondered if there is anybody out there, who would be so kind and take a look at the code and see, what optimizations can ...
30 views

TEX graphics question

In some game i found .tex files, what has graphics and .header file inside. How to open that .tex file and edit that files? And if someone know and can explain to me how to open .par file.
3 views

Error using tikzexternalize when placing an image on the verso page

I am preparing a thesis in the same manner as detailed in this question. Namely, I am looking to write a thesis with the text appearing on the right (odd) page, and images appearing on the left ...
25 views

Drawing complicated 3D designs within TikZ

I've checked the community and analyzed, already, the related questions(here, here, here, here an so on) about this case. All of the aforementioned cases are from the group of the 3D designs, have ...
14 views

Get ride of the number of some of the edges

How can I get ride of the circled marked 0 in red of the edge? Code: \documentclass[tikz]{standalone} \usepackage{forest} \tikzset{el style/.style={midway, font=\scriptsize, inner sep=+1pt, ...
13 views

Why does transparent not work well in XeLaTeX and how can I fix it?

I'm looking for a semi transparent black background on certain table rows in a pdf document. I have tried to apply http://tex.stackexchange.com/a/62528/23302 and it works if I use pdflatex. But I ...
12 views

Got citation undefined when using pdflatex

When using pdflatex to compile my tex file I got all citations replaced with question marks. However when compile with WinEdit I got all citations right. I checked the differences between the two aux ...
3 views

Figure on an even page and caption on the following page

I would like to place a figure on an even page, then the caption on the following page. The reason for that is that the figure + caption is too big to fit in one page, but I want the reader to be ...
8 views

Tikzexternalize with PGF3 system call

I'm trying to include tikz figures in my document. Because the tikz figures are rather large I'm using tikzexternalize to compile the figures using lualatex, otherwise I'm running into memory issues. ...
4 views

rsc bibliography style only printing initials

I am using \bibliographystyle{rsc} and when I have a lot of authors on a reference, it only prints the initials. I want it to print the surnames as it does usually. Any help appreciated, Thank you. ...
25 views

Creating this large image in TikZ

I need to create the following image in TikZ, but I'm not sure how I should do the underbraces and overbraces. The cardinality of the sets on top is listed as |S_{0,0}|, |S_{0,1}|, \dots, ...
14 views

Beamer: Why does title of block become unreasonably large for roboto font

The MWE below produces a Beamer block with a too large title area. Commenting out either of the second or third line fixes the problem. How can I fix it if I want to keep both lines? ...
17 views

Single occurrences of special refererence style (using the automatic numbering) to a list item (without changing the style of the other occurrences)?

I have a list: \begin{enumerate}[label={[\Roman*]},ref={[\Roman*]}] \item\label{item1} The first item. \end{enumerate} What I want to achieve is this: In the most instances, I want to refer to ...
16 views

How to insert a mindmap with TiKZ in a A4paper

I need to create a mindmap by LaTex. After rading the manual, I made the mindmap below as changing an example. \documentclass[article, 12pt, oneside]{memoir} \usepackage[a2paper]{geometry} ...
12 views

How can I trim margins, hopefully keeping the textwidth the same?

I started writing a rather large document with the default A4 paper size, two-sided, memoir format. I fear that the page size might need to become smaller than this, and my question is on how to ...
5 views

Memoir package: remove header or footer to get more space

How can I remove either the header or the footer of the page using memoir? When I say "remove", read "take no space on the page"; I want to make the block taller by using that space. (non)Working ...
10 views

APA style in German, but with commas (except for in the text)

I'm looking for some help. I'm writing my master's thesis in German using the APA style (apacite package). So since the document is in German it automatically deletes the commas in the reference list ...
9 views

Error exporting from org-mode to beamer

When trying to export from org to beamer I get this msg: Processing LaTeX file ./ppt.tex... org-latex-compile: PDF file ./ppt.pdf wasn't produced: [undefined control sequence] I don't know ...
15 views

I am writing a thesis work in scrbook class (though it appears this applies to similar non-KOMA classes as well). The default behavior for running head is: Verso pages: Chapter Title Recto ...
19 views

mhchem wrong subscript

Using mhchem version 4 (ubuntu 15.10), the simple \ce{CH2O} inserted in a report document results in CH[t]2O with "[t]2" being in subscript. Am I missing something obvious (cant' see nothing related ...
9 views

Tabular at bottom of beamer slide (above footline)

I would like to put content at the bottom of some slide, possibly containing environment such as tabular, in a manner similar to footnotes but without footnote marks. My current attempt is the ...
3 views

Automatic referencing of figure subpanels in Latex

I'm trying to have figure legends to multi-panelled figures and reference to the individual subpanels from the text. When I rearrange the panels I don't want to go through all the text and change the ...
25 views

File elocalloc.sty' not found

I am trying to compile an example of the Huffmann which I found but I am getting the error: ! LaTeX Error: File elocalloc.sty' not found. Type X to quit or to proceed, or enter new name. ...
37 views

Drawing lines to the correct circle

I have the following code \def\aes{in*0.75}%% \begin{tikzpicture}[scale=0.34mm] \coordinate (A) at (0,0); \coordinate (B) at ($(A)+(30:4\aes)$); \coordinate (C) at ($(B)+(-90:2.5\aes)$); ...
181 views

Apply a macro to every word

In order to improve the \sameword feature of reledmac, I would like to find a way to automatically apply a command to every word. For example, in plain TeX, \def\foo#1{#1 (#1)} foo bar foo bar foo ...
29 views

Ugly artifacts when using Helvetica (tgheros), Beamer, and pdflatex

First, please note that this question pertains to pdflatex, not xelatex or lualatex. I cannot use any solution involving packages such as fontspec. I'm trying to use Helvetica or a similar font in ...
12 views

Code for generating assignments with questions, sub questions and sub-subquestions

I wish to generate a question paper for an assignment, to be given to the students. Apart from the usual notes about the assignment, I wish to have question numbering, along with sub-questions and ...
17 views

How to get rounded edges for caption boxes using caption/captionsetup

I use the following in my preamble to ensure a gray background for my captions underneath figures and tables: \usepackage{caption} \definecolor{light-gray}{gray}{0.9} ...
26 views

LuaLatex additional packages, preferred destination of installed packages

I have the following Situation: I have installed the full texlive package, which includes pgfplots v1.8. But I want to compile some tex files using pgfplots v1.12. So I have extracted pgfplots v1.12 ...
20 views

spacing in the List of Figure

I am trying to adjust spacing between figure titles in the list of figures/tables on MixTex 2.9 and I could not see an answer to this issue in the previous posts. Could you please help me on how to ...
57 views

Real advantages of LaTeX over other formats [on hold]

LaTeX has practically become the de facto standard in typesetting with TeX and has practically superseded all other formats (even to the point that some people consider TeX and LaTeX as synonims). ...
20 views

Using figure labels without showing the figures.

I am trying to have two separate documents: one that contains text and another one that contains figures. However, I still want to reference the Figures from the second document in the text document. ...
17 views

make \cite{my_references to show only title at particular place in latex document

I am working with bibtex in latex. And I write references using bibtex.Its done. But want to print specific entries (year or title etc) of .bib file particularly at specific places in my document. How ...
47 views

Insertion fails when invoked in \chapter

Here is the simplified version of my project. I have a macro named \CreateMacro which takes 2 inputs, i.e., the macro name to create and its body. For example, invoking \CreateMacro{Newton}{$F=ma$.} ...
44 views

Macro to emulate \SI macro of siunitx package

I am using pandoc to convert a .tex document into a .docx. The tex document uses the siunitx package. As pandoc can not interpret the macros in the package, I have to write dummies for the macros I ...
39 views

Euclid Math Type One character

I want to use just a single character (the capital G) from the Euclid Math One font in a latex document. How can I do that without using Xe or LualaTeX?
10 views

Can I change options of packages loaded by a Lyx module?

In Lyx, is it possible to change package options of packages that are loaded by modules? Specifically, I tried to set the options of the todonotes package which I use in conjunction with the TODO ...
128 views

latex equation is logging a "missing $inserted. <inserted text>$

I have a big document and all was working good. I made a change into the parameters of the equation and now this is not compiling. I use XeLaTeX to compile normally. ...
23 views

Label equations in a documents all start with a capital letter S [duplicate]

I am working with a supplementary material. By default, at the end of all the equations are of the form (1), (2), (3)... Now I want them change into (S1), (S2), (S3). Where S stand for supplementary.
76 views

how to insert % symbol in a statement without intending comment? [duplicate]

I wish to insert a % symbol in a line. But the rest of the statement goes missing since % is usually intended for comment. How can I resolve this problem?
32 views

Section titles: single, centered roman numerals

As the title suggests, I want my section titles to be single, centered roman numerals. That's it, no actual section names. Is that possible? If so, how might I do it?
11 views

Insert an \hline once, after the nth row in pgfplotstable

In the pgfplotstable documents, there is an example where you can input \hlines in every couple rows: \pgfplotstabletypeset[ every nth row={3}{before row=\hline}, % insert hline every 3 rows ...
19 views

In the code below, I tried to put the parindent to zero for my main body document, but for some reason I think that is what may be messing up my Listings TOC. The TOC for my listing is different from ...
28 views

Complex questions: Unbold caption number, unbold number of equations, formatting ToC, and bibliography

How to eliminate the bold text for the caption's and the equation's number from my style's chapters? Anyone can help me.. This is my MWE: below is mystyle: % % Configuration of thesis rule in ...
58 views

How to get long enumerate list in \longtabu across the page like MS word can easily do?

The following is the problematic example: \documentclass[12pt]{article} \usepackage{longtable} \usepackage{tabu} \usepackage{array} \usepackage{lipsum} \begin{document} ...
10 views

pgfplots output shifted figures when plotting customized function

I'm plotting a function using pgfplot. But the output is has some extra white space on the left of the figure. It's really strange. Can someone shed some light on it? Code: \documentclass{article} ...
12 views

class exsheets automatic points by question and solution

I used the exsheets class for my exercises and exams and everything is very configurable but I have some issues with the dealing of points by questions... \documentclass{scrartcl} ...
16 views

\indent doesn't work as expected in custom nested environments

I have a custom environment that I use as follows: \begin{document} TESTTESTTESTTEST. MORE TEXT. \begin{Myenv} Lots and lots of text \par Including multiple lines and paragraphs. \end{Myenv} ...
I tried to write METrate (where rate denotes the subscript) as $MET_rate$. But only r appears as subscript.When I tried writing it as $MET_r_a_t_e$ I get it in the correct format during compilation as ...