# All Questions

6 views

### How to vertically (and horizontally) center text of cells using tabularx?

My question is very similar to this one: previous question but when I vary the example a little (as below) bit, my cells are now longer vertically aligned \documentclass[12pt]{article} \usepackage{...
35 views

### writing equations side by side

what I want to do is I want to solve my system on the same line. I've solve for x but I also want the part where I solve for y on the right side of the system that I just solved for. Is there a way to ...
18 views

### Simplify the use of ampersand & in glossaries description

I use the ampersand in the body of my these when I need to say "and"… often, you can imagine! After open my document, I use: makeampletter \def\makeampletter{\catcode\&11\relax} If I need to ...
21 views

### Including *.png, *.pdf, compiling with latex (not pdflatex) gives Interpreting PS code failed!!! Output might be broken!!!`

I'm trying to compile a paper, using elsarticle. I need to include some images, however, I have them only in *.png or *.pdf (converted from *.png using convert file.png file.pdf), not in *.eps format. ...
24 views

### How to scale equation only when it is larger than linewidth?

I know that we can adjust the size of equation using: \resizebox{1\hsize}{!}{} But I always have to digit that when I have a big equation. So, how to make latex percept that the equation is ...
20 views

### Multline A group of equations

I have two equations. I use gather (or align) environment. one of the equations are too long and I want to multline them in that environment. How can I do it? and, How I can leftside these equations ?...
21 views

### Header gets messed up

I've had a problem with my header on an assignment I've been working on. The headers of some chapter and or sections, when long begin to overlap over each other and sometimes go beyond the page. I've ...
21 views

### illegal units of measure with textblock

I am 100 % sure this code worked within my presentation I held 2 years ago. I reopened it but I do get the error Illegal unit of measure (pt inserted) { \usebackgroundtemplate{ \includegraphics[...
51 views

### How to create a simple 6 column table in Latex?

I am struggling in figuring out how to create a 6 column table that fits in my latex file. Note that I do not want to increase the width of the margins. I just want a simple table with 6 columns and ...
15 views

### LaTeX internal references for files and URLs

I have a document with nearly 100 open source files that are referenced repeatedly throughout. Also, with each file is a URL, download URL, MD5 hash, etc. Is there a quick and simple way to create an ...
63 views

### {booktabs}: What to do with tables like these?

OK, you all know that booktabs forbids the use of vertical rules. But what to do with tables like these? \begin{center} \begin{tabular}{c|c|c|c|c|c|c|c|c} $y$ & -2 & -1 & 0 & 1 & ...
53 views

### Plot that shows that largest root tends to 1

I am considering x^{i+2}-x^{i+1}-1. As i goes to infinity, the largest root tends to 1. I would like to have a plot in latex, for example with pgfplots, that shows this, maybe one could plot the ...
13 views

### \endframe error when using \textrm in Beamer

I have been using Beamer to write a presentation and have found strange behaviour when using \textrm in the equation environment. I write the following: \begin{frame}{Individual Wealth Processes} We ...
17 views

### New environment with dedicated index and reference

I'm using chemfig to create some structural formulas, but I need to create a new environment, like equation, that have a dedicated index and reference counter. I'm searching about this, but I'm having ...
21 views

### Vertical image alignment

I have a few pages with two images. I want these images centered on the page. I tried with this \newpage \vspace*{\fill} \begin{figure}[H] \centering \subfloat[Text] {\includegraphics[height=...
10 views

### Issues with inserting bibliography from Mendeley

I am new to LaTeX. I cannot import a saved bibliography from Mendeley to my LaTeX file. My current code reads this in the preamble:- \documentclass[12pt,a4paper]{report} \usepackage{natbib} \...
28 views

### Permission denied: path="C/program Files/MiKTeX 2.9\doc/bibitex/apalike/apalike.doc

While installing Miktex this error is coming: Permission denied: path="C/program Files/MiKTeX 2.9\doc/bibitex/apalike/apalike.doc My OS version is Windows 7 Ultimate and I downloaded complete ...
15 views

### Change biblatex style locally in refsection

In the thesis that I am writing, I use biblatex with biber as the backend to print a list of references after each chapter and a global bibliography at the end. In the beginning of the document I need ...
32 views

### Enlarge the arrows on the edges

I have written the following code for a directed graph, but the size of arrow is too small. My question is how can I enlarge the size of the arrows \documentclass{standalone} \usepackage{tikz} \...
27 views

### Glossaries with more hierarchical categories

I use a lot of classic glossaries in my work: main, acronyms, abbreviations… I also use more complex glossaries for linguistic studies, with hierarchical categories. I know how to build glossaries ...
23 views

Writing my master's thesis and changed how I define the sections from \section*{\centering sectionname} \addcontentsline{toc}{section}{sectionname} to simply section{sectionname} This was done ...
40 views

### How to draw vertical arrows toward a line between two coordinates?

In this shape I need to draw the two vertical arrows from nodes toward the line as shown in red. \documentclass[border=1cm]{standalone} \usepackage{tikz} \usepackage{amsfonts, amsmath, amsthm, ...
46 views

### Using \if in a tabularx

I am trying to use \if within a tabularx environment. This works: \documentclass{scrlttr2} \usepackage{tabularx} \begin{document} \newcounter{x} \setcounter{x}{0} \begin{tabularx}{\...
22 views

### tikz: Expand rectangle size to cover text inside rectangle fully

I've defined the following command that just draws four colored rectangles with some text inside them: \newcommand{\fourcards}[4]{ \begin{figure} \centering \begin{tabular}{cccc} ...
110 views

### Is the document an example of an environment?

Is the document in which you write your code an example of an environment? It seems like it might be, because it requires \begin and \end statements, but I have never seen a source which defines ...
28 views

### How to resolve the badboxes and other warningss

I'm new to LateX and these errors are giving me a tough time to understand what they are and not sure of fixing them. Please help me resolve below errors. bibdata.bib file compiled with no errors. ...
11 views

### Screenplay writing with Lyx - problems with default classes

I love lyx and want to use it for screenplay writing. Two layouts are included and the classes (broadway.cls and hollywood.cls) I have downloaded. I kept them in the same directory as the lyx file and ...
28 views

19 views

### Pluralize macro s, occasionally

I define a key term in my preamble, because we are still sorting out how to spell it ('soft goal' vs 'softgoal'): \newcommand{\sg}{softgoal} However, we also use this in plural form, which is simply ...
38 views

### How to avoid the break of dashed box?

I use tikzpicture for my dashed box, but the box breaks to a newpage when the inside text is too long: Here is my .tex: \documentclass{article} \usepackage{lipsum} \usepackage{tikz} ...
11 views

### Location of pdflatex when installing Lyx

Where is the location of pdflatex when installed through Lyx on Windows?
26 views

### Wrong PDF bookmark mapping issue with redefined appendices or chapters [duplicate]

I am using the package utdiss2.sty in a paper. When I use the package like this example: \documentclass[12pt]{book} \usepackage{lipsum} \usepackage{bookmark} \usepackage{utdiss2} \usepackage{hyperref}...
16 views

### How can I increase line spacing in whole my beamer in Latex?

I saw some solutions in other sites. I tried to use the following code: \AtBeginEnvironmentitemize}{\setlength\itemsep{2.0em}} But it doesn't work. Actually, when I type \setlength\itemsep{size} ...
30 views

### How to make a table with equally sized columns?

I have the following table: \begin{document} % Table generated by Excel2LaTeX from sheet 'Sheet2' \begin{table}[htbp] \centering \caption{Add caption} \begin{tabular}{lcccc} \...
493 views

### The Bra-Ket Notation in LaTeX

I want to write the following symbol in LaTeX: I'm using the following (minimal) code: \documentclass[12pt,twoside]{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{...
18 views

### Float package screws up list of listing format/style

Can anyone explain the following behavior: MWE: \documentclass[12pt]{report} \title{List of listings problem} \author{Gerjan} \date{June 2016} %\usepackage{babel} % Use dutch, british or english \...
26 views

### Drawing Nx1 tables in a row with specified spacing using tikz(page replacement algorithm illustration graph)

Actually, how to draw the picture like this. That's the illustration of LRU page-replacement algorithm in operating system concepts.
95 views

### Row too wide in Table!

I have the table below. But row 11 and 20 are too wide so I would like to have them split in two in a way that it still looks nice. So that the end result looks something like 11 Crude petroleum and ...
22 views

### ModernCV Footnote and Text

I am using modernCV documentclass, casual style and my resumé letter is more than a whole page. Unfortanetly, the text collides with the footnote, or to be more precise, it is very close to the ...
43 views

### Convert unicode symbols to tex

I have written a lualatex file with unicode characters such as α, ≤ … Now I need to convert it to latex. Is there a script that converts the symbols to tex commands \alpha, \leq …?
21 views

### Math symbols in .pdf bookmarks tab don't displaying correctly

I am using the commands \usepackage{hyperref} \hypersetup{pdftex,colorlinks=true,allcolors=black} \usepackage{hypcap} to create clickable links in the index and references, and also to ...
21 views

### Arrange tikzpicture horizontally [duplicate]

I want to arrange three pictures drawn with tikzpicture horizontally. Unfortunately I can't make it work using any of the threads on a similar topic. Thank you a lot for your help, best regards ...
16 views

### Suppress Sections with Key in Preamble

How do I suppress a section unless a line of code activates it or suppress it with a line of code that I can comment out? This line of code has to be placed at the top of the document. For context, I ...
248 views

### Why does \boxN clear the box?

I understand that w.l.o.g. \box0 puts the content of box 0 and clears the content of box 0, while \copy0 puts the content of box 0 and does not change the content of box 0 at all. Whenever I do \...
60 views

### Add and mention some pages in another page

How can I add some pages in another page like the following picture, and how can I mention them with this free arrows on the text!
22 views

### LaTeX: Top margin for References heading in PhD thesis

I have a layout issue with my PhD thesis. I need to have a 2 inche top margin for the References heading, but the rest of the pages of the references section should have a 1 inch top margin. The ...