3
votes
1answer
30 views

animate controls as part of the image

This is a "nice to have"-question, I guess: I'm using the animate package to show a sequence of software dialog screenshots. In getting through the series I added that useful but ugly looking ...
3
votes
0answers
49 views

Unable to change font with ModernCV

I've been trying to change the font with modernCV for quite a while now, but nothing seems to work. I'm using LuaTex. To start with, I tried changing it from sans to roman, although the font changes, ...
96
votes
12answers
18k views

Speeding up LaTeX compilation

Usually I don't mind about LaTeX's compilation speed, because a paper of less than 20 pages is compiled rather fast. However, I am working on a large document - A report with more than 80 pages. ...
3
votes
1answer
151 views

Customize a section title with Tikz

I am trying to get this kind of result with tikz. However I don' have any idea how to align the text with the bottom of the rectangles or how to anchor the 2nd rectangle with the line of the title ...
5
votes
1answer
172 views

Reference manager and version control

Let us assume you are working on a document with a small group. Each member uses his/her favorite reference manager. You share the document and the bibtex file with a version control system (say git). ...
3
votes
1answer
23 views

pgfplots legend disappearing with externalization

I have an issue with a combination of a special legend I am doing in a pgfplot, and with using tikz externalization. See the MWE below. The legend will not appear if I use externalization, but if I ...
0
votes
1answer
9 views

Problem with glossary text and accented letters [on hold]

I'm experiencing a strange behavior with the glossaries package, I have these lines in the header of my document: \usepackage[toc]{glossaries} ... \usepackage[italian]{babel} ... \makeglossaries ...
3
votes
0answers
36 views

Understanding \cventry from moderncv

I'm using modercv class with casual style. At the end there is the preview of 1st page. Note the Education section. It contains date and description and it is produced with the command ...
6
votes
1answer
66 views

Weird error after \showthe

I'm trying to understand the meaning of \p@ from plain.tex: \newdimen\p@ \p@=1pt % this saves macro space and time While trying to figure it out, I stumbled upon strange behavior. Consider this: ...
3
votes
1answer
65 views

Invoice total error

H All, do you know why this piece of latex code (invoice latex tex file from Trey Hunner) make some mistake with math? \documentclass{invoice} % Use the custom invoice class (invoice.cls) \def \tab ...
5
votes
3answers
112 views

nested \ifnum commands

I'm trying to make macro to work in biblatex edition field. Logic is following: if edition =1 there is suffix -li (1-li) if edition>1 and if edition<21 there is prefix me- (me-15,me-20 ..etc) if ...
1
vote
1answer
120 views

TextMate \cite syntax highlighting

When I open a LaTeX document in TextMate, the syntax highlighting makes the part in braces in any cite command colored red, as if there is an error: \cite{why-is-this-red} Is there an easy way to ...
1
vote
1answer
34 views

How to place a photo on this resume template

I would like to use this template(xelatex) for resume, in particular, I want to add a photo in the title block, just in the right of the name, could anyone help?
0
votes
0answers
13 views

using the package pb-diagram in MathJax [on hold]

How do I implement the package pb-diagram within MathJax? \require{pb-diagram} inside the equation environment does not work. Thank you.
0
votes
2answers
141 views

“ö ü ä ß” in Latex (Mac, German, TeXShop)

It sounds simple but I have a really heavy issue with the "ö ü ä ß" in Latex. I use a template from my university, i have a mac and i use TeXShop if that matters. Within there is a packages.tex with ...
3
votes
1answer
46 views

Get element from a table

I have the following table: \begin{filecontents}{table.dat} a 0.70 b 0.58 \end{filecontents} and I am trying to access at the elements with the command \pgfplotstablegetelem{0}{0}\of\table but ...
3
votes
1answer
62 views

Auctex, view a pdf already opened in Emacs 25

I have emacs 25.0.50 and auctex 11.88. The auctex command C-c C-v opens a window with the pdf file (compiled with pdflatex). If that command is executed a second time, it does nothing. But in a ...
4
votes
4answers
18k views

Installing a class

I created a new class file to use. I have put the .cls file in the same directory as the original cls files (report, book etc) and im 100% sure the names match. The directory for me is: C:\Program ...
7
votes
4answers
303 views

PGF/TikZ Draw the border of a shape inside it

I want to draw a thick border for a shape (let's say a square) inside it and not on its center, like shown in the image. I am interested in obtaining the second case. Unfortunately I cannot find any ...
2
votes
0answers
19 views

getting error “could not start command pdflatex -synctex=1 -interaction=nonstopmode %.tex”

I use a texmakerwin_32 \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} sharath ...
1
vote
0answers
30 views

why can't I use a package in texmaker?

I am using Texmaker on a mac. I downloaded MacTex. However, I cannot use packages in Texmaker. It always keeps telling cannot find .sty file. How can I solve this?
1
vote
1answer
18 views

Using alertblock inside block in tikzposter

Is there a simple way to use alertblock inside \block in tikzposter? I need to emphasize some statement and using alertblock will be very practical. Something like: \block{Block Title}{ text text ...
2
votes
2answers
17 views

LaTex: Adding cell padding to a text frame

I'm trying to create a box as below in LaTeX. \framebox[40em][c]{ I certify that the work presented in the dissertation is my own unless referenced. } I want a little bit padding between the text ...
0
votes
1answer
8 views

pdftex.def error - 'pdftex' requires pdfTex

This is an error that appears everytime I try to build the output of my document though texnic centre. As you can see in the image, the error is: "option pdftec requires pdftex, but pdftex features ...
0
votes
0answers
25 views

Force figures to be on the same page

In a two-column document using the following documentclass call: \documentclass[twocolumn,aps,prb,citeautoscript]{revtex4-1} I have three separate figures at the end of my document. Two are placed ...
1
vote
1answer
45 views

Print iteration counter in for loop

I am new using for loops in latex, and not sure if the following is possible. This is basically what I am trying to achieve: \documentclass{article} \begin{document} \foreach \x in {a,b,c} { ...
2
votes
2answers
28 views

Typeset output from Maxima using input{}, specifically left justify

First of all, apologies if there is an answer for this already. I'm outputting symbolic results from Maxima using tex(<output>,"filename")$, which leaves me with an expression with $$ on each ...
11
votes
2answers
597 views

Availability of LaTeX packages' functionality in ConTeXt, XeTeX, and LuaTeX

I am considering trying out ConTeXt, XeTeX, and LuaTeX, but one concern of mine is the fact that I am using a large number of LaTeX packages. There are a number of questions comparing these TeX ...
1
vote
1answer
11 views

README file creation from a dtx file

When I run my dtx file, I get a README file with all the information, but there are no (apparent) line feeds in it. If I look at it with Notepad, everything is strung along with no line breaks at ...
2
votes
1answer
38 views

change font size of english words in a persian report

I am using report and xepersian packages to write a report in persian. I have some words and variables which are in english and use the $example$ command to write them when they are inline. How can ...
39
votes
0answers
2k views
+50

Speeding up compilation using precompiled preamble with LuaTeX

Compiling my documents with lualatex takes quite long. I have a complex preamble, and I noticed that it takes long to process this part of the file. Today, I came across this website, which proposes ...
2
votes
2answers
76 views

Definition of a macro with multiple arguments and usage of \csname

Why does the following code not work ? \Requirepackage{amsthm} \renewcommand\newtheorem[2]{% \NewEnviron{\csname #1\endcsname}[1]{% ##1 : \BODY } } I have seen examples of the use ...
7
votes
5answers
438 views

How to change all \vec{} to \bf{}

I'm writing a paper and I used \vec{} to express all vectors. Now, I changed my mind and want to write them in bold letters using \bf{} for instance. Is there a fast way to change all that's been ...
7
votes
2answers
362 views

Document class CD to create beautiful CD cover

Does somebody know a document class like cd to create cd covers where: a) I can add a logo to the CD cover text and b) the output is not a4 (or so) but the exact size to fit a CD cover. I tried ...
15
votes
2answers
310 views

Environment to stack a word and a number

There is a requirement to write a list of words, underline each word and place a number centered below the line. Using the stackengine package I have prepared the following MWE. ...
3
votes
0answers
44 views

LaTeX table star positioning (double column tables)

How do I tell my table* to be on top of the same pages as the paragraph I want? I know of the question http://stackoverflow.com/q/1673942/659634. Which does not answer how to work with double column ...
2
votes
3answers
44 views

Help with table multicolumn [duplicate]

I'm going crazy in trying to draw the following table in LaTeX: Can you help me please? Thank you in advance Here's what I've done: \begin{tabular}{c c c} A & \multicolumn{2}{c}{B}\\ E ...
2
votes
4answers
137 views

Spellchecker in Lyx 2.1.4 Does Not Work

I just upgraded to Lyx 2.1.4 from Lyx 2.1.3 and the spellchecker does not work -- it asks if I want to start from the beginning and then closes like it found no errors. I am using Windows 7 with a ...
5
votes
1answer
37 views

Affect the vertical space in labelling environment for the Acro package in KOMA-Script

I am using the scrreprt class and have defined the way my acronyms are presented with the definition: \usepackage{acro} \newenvironment{acronyms} {\labeling[~\dots]{longestword}} {\endlabeling} ...
3
votes
0answers
25 views

How can I type Genzen style deduction in LyX?

As a philosophy major student, I'm learning how to use LyX. And I don't know how to type genzen style deduction on LyX. And Is there any good reference for LyX like Peter smith's for LaTeX ...
6
votes
2answers
245 views

How to create a page like this?

I'm a LaTeX newbie. I want to create a page layout like in the picture below on every page. Can someone help please? Thanks.
4
votes
5answers
99 views

How do I raise or lower the position of text?

Using minipage, I've split my header into \begin{minipage}{0.4\textwidth} \textsc{ \Huge{\textbf{MyNameHere}} }\\ \end{minipage} \begin{minipage}{0.6\textwidth} \begin{flushright} MyAddress\\ ...
3
votes
1answer
68 views

How to get Vim Latex-suite projects (with .latexmain-files) to configure spelling in subfiles correctly

I use Latex in larger projects and I use the following file structure: project/ mainfile.tex mainfile.tex.latexmain tex/ subfile1.tex subfile2.tex ... The command ...
4
votes
1answer
13 views

Adjusting vertical alignment of sidenotes in Eledmac

I am using Eledmac to typeset a lengthy document which contains sidenotes. The body of the document is to be double-spaced, but I want the sidenotes to be single-spaced and in a smaller point size ...
1
vote
3answers
79 views

How to expand macro in a macro call

How can I expand a macro inside an optional argument list \newcommand{\sss}{% label={$\bullet$},topsep=0mm, parsep=0mm,% leftmargin=3mm,rightmargin=0cm,labelwidth=5mm,labelsep=3mm% } ...
10
votes
2answers
266 views

Appending an empty row after every 5 or 10 rows in LaTeX table

I wonder how to append an empty row after every 5 or 10 rows in LaTeX table. Here is my MWE in .Rnw format. Any help will be highly appreciated. Thanks! \documentclass{article} ...
8
votes
1answer
478 views

Chapterwise page range in the TOC

Can you give me some advice for how to obtain the following format of the TOC? Chapter’s heading 1-7 Chapter’s heading 9-10 Chapter’s heading 11-15
2
votes
1answer
23 views

Modifying \maketitle with the titling package

Modyfying the \maketitle command with the titling package is challenging, as the documentation has very little explanation and examples to let users like me understand what to do. This gets even ...
4
votes
2answers
106 views

How to automate adding spaces around an ampersand in math mode

Suppose, we are writing a logical expression in math mode: \documentclass{article} \usepackage[a4paper]{geometry} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \begin{document} $a\&b$ ...
2
votes
1answer
23 views

Arabtex & elsarticle

I am trying to make an article (elsarticle) uses English as main language and some Arabic words embedded using arabtex but this error is generated: Missing } inserted. \end{abstract} I wish some ...

15 30 50 per page