0
votes
0answers
4 views

How to align the quotient when using polynom

I am using the polynom package to illustrate long division with polynomials. Typically, when I do these problems by hand, I have the first term in the quotient aligned with the first term in the ...
0
votes
0answers
3 views

tikz and pdfpages conflict

I have a LaTeX document that uses both the tikz and pdfpages package. When I compile, I got the following error. LaTeX Warning: You have requested package `eso-pic', but the package ...
4
votes
1answer
22 views

Continuos Footnotes by separate even and odd pages

I have a latin text in odd pages and its translation on even pages. But I need different footnotes for the odd and even pages. Nevertheless, I don't want them to restart in every page: I need them to ...
3
votes
1answer
59 views

KOMA - Footnote for enclosure?

How can I add footnotes to enclosures using \encl? The code below is not working. \documentclass[version=last]{scrlttr2} \usepackage[ngerman]{babel} \begin{document} \begin{letter}{Markus Kohm} ...
1
vote
1answer
27 views

Separation between paragraphs on formal Letters

I want to create a formal letter in which I have to add a separator between paragraphs, just as the ones in the picture Is there a way to create a this but not by typing each asterisk below the ...
0
votes
0answers
8 views

blank lines in user-defined lists in htlatex

Consider the following latex code: \documentclass{article} \begin{document} \begin{list}{*}{} \item one \item two \end{list} \end{document} It should produce: one two But the htlatex output has ...
2
votes
0answers
9 views

Spurious Vertical Space Introduced by multicols (Additional Case)

This seems to be a duplicate of Spurious [?] vertical space introduced by multicols, but the solution from there does not seen to work for me. Basically I want the case of using multicols to not ...
1
vote
6answers
85 views

Greek typewriter font

Hello I want to use a greek typewriter font. So far I can't manage to find any font of that kind. Can someone tell me where I can find one?
1
vote
1answer
15 views

How to define frequently used variables in pseudocode?

To generate the above pseudocode, I used the following code: \begin{algorithm} \caption{sample}\label{sample} \begin{algorithmic}[1] \Require $\mathbf{D} \in \mathbb{R}^{M \times N}$ \State ...
0
votes
0answers
13 views

Counters for Chapter and Section environments when using tcolorbox for listings

This is a followup question of this question. With my MWE I'm getting wrong Listing numbers, wrong toc (including Chapter and Section environments from listings) and wrong bookmarks in pdf toc. Any ...
13
votes
2answers
61k views

Adding tabs or creating my own command

I have a problem adding tabs and I can't use a tabular environments (like tabular or tabbing) because I can't mix it with enumerate environments. Is there a way to add a simgle tab like in any text ...
0
votes
0answers
33 views

How to indent entire section heading and indent second line, if it comes, further

I am formatting my CV in latex, and I currently have all my section headings indented by 2em. The first item is the date of the \NewEntry and after that I have \hspace{1.5em} inserted to separate the ...
1
vote
1answer
65 views

Custom separator for CSV import via csvsimple

I have successfully used csvsimple to import .csv files. But I would like to have commas as number separators, so I modified the .csv file to use semicolons as separators and as csvsimple manual says, ...
12
votes
1answer
68 views

Latex “command examples” lookup / reference - from the command line?

I am already very fond of the texdef tool, which is used on the command line, something like this: $ texdef -t latex \newcounter \newcounter: macro:#1->\expandafter \@ifdefinable \csname ...
3
votes
3answers
46 views

latex - bold not bold enough in math

I tried to get characters in math-environment bold such that they look like this (picture taken from a book - pdf-sample: link): However, neither \mathbf{xyz} nor \boldsymbol{\mathrm{xyz}} work in ...
0
votes
1answer
21 views

Swap even and odd page margin in document class book

I am writing a book and I would like to swap the even and odd page margins without changing the page numbers. I am using document class book. I know that by default the book class sets the margin of ...
4
votes
1answer
36 views

Displaying multiple equations

I want to display multiple lines of centered equations. Each equation has multiple equalities and inequalities, so aligning is not called for. All I want is display them one line at a time, centered, ...
4
votes
1answer
70 views

Is there an easy way to generate weighted vertices in graphs?

There are several ways to include edge weights in graphs, but what about node/vertex weights? I need each vertex to be labelled with a letter and weighted with a number; I cannot find code that does ...
7
votes
1answer
50 views

drawing a plane and orthonormal system using tikz

I want to draw the following image and i face problems especially in the plane on the left : \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \draw[thick,->] (52,0) -- ...
0
votes
0answers
13 views

Numeration of formulas in Lyx

How to numerate formulas in Lyx? Is there exist LaTeX command like "\tag "? I haven't found corresponding info before.
2
votes
1answer
197 views

! Package pgfkeys Error | compiling a standalone picture as \includestandalone{fig}

I have two tikz pictures in external files (fig1.tex and fig2.tex): fig1.tex \documentclass[a4paper,class=minimal,border=0pt]{standalone} \usepackage{tikz} \usetikzlibrary{plotmarks} ...
0
votes
1answer
33 views

Text between Index or Bibliography title and content

I want to write some text between Index title and content. (also between Bibliography title and content). I tried to redefine the title with the text, but I hope there is a better solution, because ...
2
votes
1answer
21 views

Writing tutorials with exam document class, with and without solutions

I would like to write some tutorials for my students, and for this I am using the exam document class, and the solution environment. now the problem is I have a statement \printanswers that I need ...
1
vote
1answer
55 views

Wrong page numbering for list of figures and list of tables in Table of Contents!

I know other people have asked this question but having scanned through the answers there seems to be two solutions: compiling 3 or 4 times and trying out some snippets of code involving the \markboth ...
2
votes
0answers
18 views

Forcing graphic, table, plot .. out of page boundary

I am very new to latex, so this question might be very basic. However, I have been searching the whole evening, so either I don't know how to google this effectively, or what I am trying to do is not ...
3
votes
1answer
12 views

Cannot access column name in pgfplotsstable

I followed the standard way (to the extent of my knowledge) of accessing the column name in pgfplotstable but it doesn't seem to be working. This is the code: \begin{figure}[H] ...
0
votes
0answers
9 views

How to change the indents between LaTeX formulas and text in Lyx

I want to change the indents between LaTeX formulas and text in Lyx, but I don't know where is this option. Can you help me?
1
vote
0answers
8 views

Write unit tests for Lua in ConTeXt

I would like to write some unit tests for Lua code being used by ConTeXt, and would like to know if anyone else has done this and what may be require in setting up the framework. The Lua code in ...
0
votes
1answer
13 views

Lyx doesn't display matrix correctly

I have tried to insert following LaTeX code for matrix in Lyx: $u_{L}(k) = \sqrt{E}\begin{pmatrix} 0 \\ 1 \\ 0 \\ -1 \end{pmatrix}$. In all LaTeX-based sites this code is displayed correctly, but ...
8
votes
3answers
151 views

Completely expandable loop macro that also works in tabular

Since I normally use tikz in my documents, I mostly use the \foreach \x in \list loop to repeat things. However, this famously fails in tabular environments and also everywhere where things must be ...
2
votes
0answers
33 views

Using Titlesec, titletoc, and titleps together affects the command \tableofcontents

Writing a book of probability in arabic, I want to use the titleps package for different beautiful headpages, in my files where I use titletoc for partial table of contents. All was good until I used ...
1
vote
1answer
22 views

Available width inside algorithm2e

I wanted to use an environment inside an algorithm2e and it turned out, that it is too wide. I tried to draw some boxes to see the width, and it turned out that \textwidth is too large inside the ...
4
votes
1answer
89 views

Randomize a section of code lines

This is similar to a previous question, but I didn't really understand the answer given. One possible use of what I'm asking is in the following code for a Matching style of question, where lines of ...
2
votes
1answer
28 views

Conditional Zebra Tables

First, I'm using LyX with a rather long preamble because I want things fairly specific, but almost all the code in the preamble is cut-n-pasted from the 'Net with a couple modifications. I'm not a ...
2
votes
1answer
16 views

Verse Package: unwanted vertical space between lines

This is an issue that's been bothering me for a while. I'm interested in typesetting poetry on narrow pages. I'm using the verse package to set the poem and the geometry package to manage the page ...
2
votes
1answer
46 views

pythontex on Ubuntu 14.04

After installing the package pythontex via latex pythontex.ins, I tried the following example to test it: \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} ...
5
votes
1answer
26 views

How to specify a direct color in a tikz picture

I want to model gradients in TikZ for a paper covering color gradients. These are rather special, so a cannot rely on a TikZ shade alone. Thus, I want to model the gradient using consecutive TikZ ...
2
votes
1answer
33 views

Sorted bibliography not displayed

I have a tex file that was working perfectly with several bibliography parts with different sorting options. It is no longer working! Some bibliography parts are not displayed. My OS is Windows 7 Pro ...
20
votes
3answers
5k views

How to change the background color only for the current page?

How can I change the background color only for the current page? I found that I can change the color with \pagecolor{color} but that unfortunately changes the color for all pages after this command. ...
2
votes
0answers
44 views

How can I adjust the positions of the tables and the images so that the large space between the table and the image can be avoided?

How can I adjust the positions of the tables and the images so that the large space among the text, the table and the image can be avoided? There is also a problem that on the last page, the page ...
0
votes
0answers
27 views

nextfoot in scrlttr2

I do not understand some of the features the nextfoot variable has in the scrlttr2 KOMA-script class. \documentclass[]{scrlttr2} \pagestyle{headings} \usepackage{fontspec} \setmainfont{Linux ...
4
votes
1answer
55 views

Workaround how to use expl3 functionality in tikz

What I want to do I want to create a command \planfigur{<edges>}{<angles>} which draws a triangle using TikZ. \planfigur should have 2 mandatory arguments, which let me specify edges ...
0
votes
0answers
14 views

Multiline equations within parentheses [duplicate]

I have two equations which need to be broken into multiple lines. One of the equations has a coeficiente factored out, so that it is of the form X = A(...very long...). The other does not. The ...
2
votes
1answer
33 views

how to underline the enumerate number automatically

\begin{enumerate}[\textit{Step} \itshape 1 :] I want italic and underline "Step 1". What should I add to underline "Step 1"?
4
votes
1answer
243 views

Color first row in a xtable generated table

I am trying to color the FIRST row of my table. But if I add \rowcolor[gray]{0.95} to the FIRST row the colored row will be the SECOND. Indeed it is quite straight forward to modify from the second ...
2
votes
0answers
21 views

two variables foreach loop problem

I want to draw a pulse train on which I write some information like the corresponding angle, etc... But I think I've got a problem with the two variables foreach loop because I can't even compile ...
0
votes
0answers
24 views

Customization of List of Tables and List of Figures title

I'm working on my thesis, and need a list of figures and list of tables. However, in the book document class I'm using the default format is not a format I can use. I did find a fix for the Table of ...
1
vote
1answer
67 views

Problem with headings

I have some problems with the headers for some of my chapters within my Latex document. I’m using a password secured template so I’m a bit afraid to post every detail below. Just considering the ...
1
vote
3answers
2k views

Undefined Control Sequence occurs at: \begin{document} [on hold]

I wasn't having any problem with my .tex file, but after compiling a separate document - which used a different document class - my current file no longer loads. Specifically, I was using the imsart ...
0
votes
2answers
433 views

Fit to landscape longtable generated with xtable and sweave

I read many TEX questions/answers on fitting a table to your page width, but cannot figure out how to do apply it in my context (using xtable/sweave). Everything that I tried (using adjustbox, tabu) ...

15 30 50 per page