23
votes
3answers
2k views

Where is the LaTeX manual?

Helpful members of the community just solved my problem with \newcommand: What's wrong with my newcommand? But in trying to solve it, I got an error message referring to p. 192 of "the manual". ...
1
vote
1answer
166 views

Make TikZ figure with scenarios and arrows

Hi all I am wondering if it is possible to create something similar to this in TikZ, but I dont have much experience with it. Is there anyone who can give me a starting hand? Thank you in advance
0
votes
0answers
39 views

Add key of enumerate (already defined by enumerate) in a new list

This is a follow-up question to Enumitem \SetEnumitemKey and conflict between multiple key before and after. Here is the code to set two keys, for a list named answers, without conflict (as it was ...
5
votes
1answer
73 views

Delimit comment on special character

I have defined a new language in Latex (Clojure) but I'm having some issues with delimiting keywords. A keyword in Clojure is any alphanumeric string starting with a colon. E.g., :foo-bar-baz. So far ...
1
vote
1answer
297 views

Use of cvcomputer or cvdoubleitem

I have a cosmetic question. I am wondering how I could center the two words in the red circle. Basically I would like to have either: "Système d'exploitation" in one line or, "Système" and ...
5
votes
1answer
59 views

How to make option langid={english} conditional?

How can i make all references to have langid={english} option unless there are cyrillic letters inside a reference, then it should be langid={russian}? Optional question: How can i make all references ...
5
votes
3answers
349 views

What's wrong with my newcommand?

I defined a question macro, then made it successively fancier. Right now, three macro should define a short hand for the following: \section{Questions} \begin{enumerate} \item Q1... \item Q2... ...
4
votes
1answer
40 views

Customized Citation Style

I started using Biber+BiblateX and I wanted to make it produce the citations in the form of a list of the first letter of the authors, similar to the alphabetic style. Similar is the key word: the ...
1
vote
1answer
64 views

Table Wider than text

I am trying to generate a normal table, but some columns have long lines and this made the table go outside the page margin. How can I adjust the table width ...
6
votes
2answers
256 views

Wrap page number in colored box in footer

I a looking for a way to achieve the following outcome for the page numnbers in my footer created using fancyhdr: My current code in a stand-alone example looks like this: ...
4
votes
2answers
147 views

Is it possible to remove an empty white page due to inserting a too large picture?

From searching here, I have understood than when inserting a picture too large for the available space, even on an empty page, the picture will be put on the next page. However, leaving a page empty ...
3
votes
1answer
371 views

Where can I get datetime2.sty or what is CTAN?

I am trying to build a huge latex project on my system - I downloaded everything, and did not touch anything. XeLaTeX tells me that datetime2.sty is missing, and I guess I just have to download it, ...
3
votes
2answers
65 views

Symbol to the right of equation

I want the contradiction symbol to the right of the equation without moving the equations to the left. I've written \begin{align*} u(2-t, 1, 3-t) & > (2,1,3) \\ 1 ...
1
vote
0answers
263 views

File ended while scanning use of \@topnewpage

I get this error while trying to compile the following code. I've already tried to delete .aux files. What else could it be the issue? \documentclass[conference,harvard,brazil,english]{sbatex} ...
4
votes
2answers
402 views

PDF page labels

Is it possible to set page labels in pdfs “correctly”? Pages in my latex documents are numbered 1-x. I'd like the page labels to correspond to the actual page numbers (as mentioned here: ...
1
vote
0answers
51 views

Document class problem? [duplicate]

My text in thesis is as below: %\documentclass[croppedpdf,pagebackref,showinstructions,showtodo]{adsphd} ...
3
votes
2answers
56 views

Caption away from the figure

I have made a block diagram using the \framebox command. A large white space exists between the caption and bottom of the figure. How can I reduce it? Code: \begin{figure*}[!t] ...
1
vote
0answers
35 views

Using key value in enumerate to another key value

This is a follow-up question to Enumitem \SetEnumitemKey and conflict between multiple key before and after. I want to use a key value in a list in the definition of another. Here I use a better ...
3
votes
1answer
87 views

Table with tikz image: vertical alignment

I'm trying to create simple table with tikz pictures and its descriptions on the left side. Unfortunately I cannot vertically center those descriptions in their cells: ...
1
vote
1answer
102 views

fancyhdr and chapter*

I'm using fancydr like this: \usepackage{titlesec} % Normal chapter titles \titleformat{\chapter}{\normalfont\LARGE\bfseries}{\thechapter.}{1em}{} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} ...
2
votes
0answers
30 views

LyX cannot compile correctly my title page [duplicate]

I am trying to make the title page for my master thesis. I found on the internet a template, in which the cover page is given by the following code \begin{titlepage} \begin{center} \textsc{\LARGE ...
9
votes
2answers
404 views

Scaling \ddots in smallmatrix

I'm trying visualize a very large matrix. To do so, I'm trying to use \vdots and \ddots in a bsmallmatrix enviroment. It works but they do not scale properly as \cdots do. Now, in the minimal ...
3
votes
3answers
129 views

Arrange long multiple equations with texts between them

I have aligned the equations in the following way but using multiple \qquad. I don't think it is a good practice to do so. Moreover the equations should fit within the width of the document. What I ...
3
votes
2answers
211 views

Formatting a thesis summary chapter

I'm trying to format my thesis summary title, but the result is not very appealing. Here's the code: \chapter*{\parbox{\linewidth}{\centering A very long thesis title about some very important stuff ...
1
vote
1answer
72 views

Error in reading csv file

I want to read this from .csv file but getting error Items, FactorLoadings Social Needs (Cronbach's a = 0.695) Smartphone allows me to stay connected with those I care about,0.758 I use ...
3
votes
2answers
295 views

Supply rails in circuitikz

I am trying to draw the circuit below, however I am having difficulty in drawing the connections to the supply rails. I've abused the sground node since it is the same as the typical symbol for power ...
0
votes
2answers
135 views

Dashed edges from parent to normal edge in child in trees

I am creating a tree in which the edges from a child to its children are dashed. I got this using child[dashed]. Now all the edges of these children are dashed. I want to override this. So unable to ...
0
votes
0answers
22 views

How to write multiple lines of text in a box created using \framebox in LaTex [duplicate]

I want to draw block diagram of a system. I used \framebox command to create blocks. But when I write long text inside the box it comes out of the boundaries of block. How can I write text in multiple ...
1
vote
1answer
151 views

Problem with title page when justified in Tufte-Book

I am using Tufte Book template and defined a new paper size (10x7 inches) in .def file. Its working fine. When I use justified option in preamble ...
4
votes
1answer
80 views

Declaring array of integers

Is it possible to declare in TeX array of integer numbers ? What I am trying to do is to declare new tabular environment for very long tables spanning accross multiple columns and (or) pages. My ...
4
votes
1answer
74 views

Program package confliction

I want to write pseudo-codes in my survey using program package. Since I'm writing in other languages rather than English, I have to alter the names of those environments, like theorem and proof, etc ...
2
votes
2answers
910 views

Color text in a table

Is there a way to color text in an entire table without using environment tabu? For example, change the color of text in every cell to red.
2
votes
1answer
64 views

Enumitem \SetEnumitemKey and conflict between multiple key before and after

I try to make life easier by setting key to list with the package enumitem. But, the options before and after seem to be in conflict when used more than once. Here is some code that show four ...
1
vote
1answer
39 views

Page not in correct size or format

Total newbie here: please bear with me. I’m running TeXShop on a Mac, trying to render a single-page musical score that uses the “bagpipe” macro-package. The file starts with %&bagpipe \input ...
5
votes
1answer
120 views

Not the same scale for the fading and for the actual TikZ picture

In a TikZ picture, I want a white shaded rectangle to overlap perfectly a black rectangle. Here is a MWE of what I have done so far. (In the MWE, the shading is much more simple than the one I want to ...
3
votes
1answer
155 views

scrlttr2 - how to change the font color of first name and family name independently into different colors respective for each word (in sender-field)?

As is known, the sender's name is automatically displayed inside the sender field with the value taken out of fromname's variable (like below). Minimum example: \documentclass{scrlttr2} ...
5
votes
1answer
81 views

Nested `mdframed` environments and footnotes

Suppose that you have two mdframed environments, one nested inside the other, and a footnote in the first mdframed environment but not in the second. See the MWE example below. ...
5
votes
3answers
476 views

Stop indenting the second line in list

I want to be able to stop indenting the second line in the list and still keep the indentation of the first line. Is it possible? \documentclass[multi={minipage}, border=5]{standalone} ...
2
votes
1answer
73 views

I have the follow boxplots that I wish to add averages

I have the following boxplots: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.8} \usepgfplotslibrary{statistics} \begin{document} \begin{tikzpicture} \begin{axis} [title ...
2
votes
1answer
38 views

pgffor `foreach` loop over databib macro-generated list

The databib package from the datatool bundle allows one to import BibTeX databases and work with them from within LaTeX. The author field can be accessed as \DTLbibfield{Author}, which returns data ...
4
votes
1answer
224 views

How to show the mean or average value on a box plot with pgfplots

I have made the following graph: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.8} \usepgfplotslibrary{statistics} \begin{document} \begin{tikzpicture} \begin{axis} ...
0
votes
1answer
62 views

Center a title when left and right margins are not the same

I am using different margins for the left and right side : \usepackage[ a4paper, top=2cm, bottom=2.5cm, left=4cm, right=3cm, headsep=25pt, headheight=14.5pt ]{geometry} % Page margins ...
1
vote
2answers
74 views

Pre-expansion of moving macro argument

I am using databib package (datatool bundle) to get information out of a BibTeX database for arbitrary use in a LaTeX file. It provides a command to loop over the BibTeX entries. Within such a loop, ...
1
vote
1answer
116 views

Align colored numbers in table

How to align colored numbers in the last line with other numbers in the same column? \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} ...
1
vote
0answers
28 views

LaTeX: precompile document to reuse inside a C++ program [duplicate]

I've made a C++ program with uses a LaTeX template for creating PDF documents. I open the file, replace some placeholders written inside the .tex document with values of a DB, and then, I compile the ...
2
votes
2answers
77 views

“List of Lists,” similar to \listoftables or \listoffigures?

While this may seem kind of meta, I'd like some way to create a list of lists at the beginning of a document with labels for each list. Is this easily done? Currently my project is laid out like this: ...
3
votes
1answer
603 views

How are the colors for certain schemes defined in moderncv?

Unfortunately, I'm not able to find this information in moderncv.cls... There is only written: % colors %------- \definecolor{color0}{rgb}{0,0,0}% main default color, normally left to black ...
2
votes
2answers
119 views

Put answer as an optional argument for multiple choice

I am using the following code at the moment to make Multiple Choice Questions with the options as the 5 arguments. \documentclass[a4paper,addpoints,answers,12pt]{exam} ...
3
votes
0answers
529 views

TexStudio - internal embedded pdf viewer shows different figure than external pdf viewer of the output pdf

I use TexStudio (2.9.4) on a Mac OSX (10.10.3) with TexLive. The problem here is that when I insert figures, that are saved as pdf files, and compile with PDFLaTex, the output figures deviate from the ...
0
votes
0answers
56 views

bibliography problem - does not want to appear

given the following code, why biblography from .bib file does not want to appear, instead there is only the heading "references" and nothing else? .bib and .tex file below (i have copied everything i ...

15 30 50 per page