# All Questions

2 views

### How to show line (symbol) in text

In latex how to show different types of line, in symbol form as ---- and other forms, in text line.
4 views

### Newcommand within display math mode

I am trying to define a new command in a .sty-file called physics that inserts the definition of a physical quantity in the text. The command looks like this: \newcommand{\defin}[1]{% ...
3 views

### Landscape mode for lecture notes

I am trying to make notes for a talk I have to deliver, in LaTeX. I want to make it look like http://gunion.physics.ucdavis.edu/gunion/renormalization.pdf. What package do I require to make notes ...
7 views

### Diagram for composite of a function in Latex

Can somebody help me generate a latex code for this pic.
6 views

### Inline Boxed Equation

I'm having trouble producing a boxed equation in the same line as some other formulae. For example: $$\frac{2}{4} =$\boxed{ \frac{1}{2} }$$$ I'd like to be able to show some calculations, ...
4 views

### Newenvironment, multicol and space problem

Why jumping a line cause a problem here ? \documentclass{article} \usepackage{multicol,xparse} \NewDocumentEnvironment{DeuxCols} { D<>{30pt} O{.5pt} mm }{% ...
10 views

### Beamerposter Example

To help them get started on their own presentations, I'd like to give my students the tex file for a well-made poster presentation using the beamerposter package. Unfortunately, the example that comes ...
8 views

### LaTex table - increase column width

I have a table - it looks densely packed. I would like to add width to the column 'test', 'p' and 'standardised beta'. Is there an easy way? Thanks. (It's the first time I use LaTex, so apologies if ...
13 views

### How to get Unicode characters U+2713 and U+2717 to display in pdfLaTeX?

My document has \usepackage[utf8]{inputenc} in its preamble. I am trying to use the characters U+2713 (check mark) and U+2717 (ballot X), but I get the error: ! Package inputenc Error: Unicode char ...
2 views

### Help with author blocks using authblk package

I am trying to use \authblk to create a beamer presentation with multiple author blocks, where each block basically says: AUTHOR NAME 1 INSTITUTION 1 I tried using the \authblk but it does ...
6 views

### Problem with pgfplot table compiling 3

Can you help me get my file to compile that uses the pgfplot table. I keep getting problems. I do not understand why this keeps happening. Here is my code: \documentclass{book} ...
2 views

### change appendix heading from Chapter A to Appendix A

I am writing my thesis. The format requirement is to make the appendix chater name as APPENDIX A TITLE but name tex code is doing CHAPTER A TITLE Below is the snippet: \being{document} ... ...
5 views

### Issue with ntheorem and \eqref

Whenever I try and label an equation in the following format $$\label{eq:blah} blah$$ and then reference this equation By \eqref{eq:blah} I get the usual (??) of an ...
5 views

### How do you draw a dative bond with chemfig?

How do you draw a dative / coordinate bond with chemfig? I would like to have the bond to appear as an arrow.
9 views

### Cube drawing is shifted

I am drawing a cube in TiKz. The cube is centered at the origin. That is the coordinates are (±1,±1,±1) still when I display the cube is shifted. Aligned at x=0, and all in the first (all positive ...
8 views

### Using TexShop, upgraded to OS X El Capitan, and the fix isn't working

I am having issues compiling in TeXShop since upgrading to El Capitan. I have searched extensively for a fix, but none of the recommended settings are fixing my problem. Here is a screenshot of my ...
12 views

### Updating .sty files in ~/texmf

I am using TeX Live on Linux Mint 17.2, and I have previously set up the ~/texmf directory, so that I can manually install my own .sty files. However, after editing the .sty files in ~/texmf, LaTeX ...
16 views

### Using \mathcal With and Without Package

This is going to seem like a simple question. However I hope it gets answered nonetheless. So, I want to be able to use the default \mathcal font setting AND the eucal-package font setting as well. ...
8 views

### Color pgfplot table based on cell number

Can you tell me how I can go about making the cell color red if the number is negative? Here is the code for my pgfplot table: \documentclass{book} \usepackage{pgfplotstable} \usepackage{longtable} ...
18 views

### I can't install Miktex on Windows XP “It has produced unknown software exception … ”

I need to install but I have not could do it. I have an old PIII with 384 Mb RAM running Windows XP service pack 3. I have intented to install: Basic-miktex-2.9.5721.exe, Setup-2.9.5721.exe and ...
17 views

### (Answered) Including “Chapter” before each section number in the ToC? (Updated Question) [duplicate]

I was given a solution to include "Chapter" before my section entries in the ToC, however the number of the section does not get transferred to the ToC! For instance, in the MWE below, the sections ...
5 views

### Updated chemfig gives errors for previously working code

I've just installed TeX Live 2015 vanilla and I tried to compile some old sources just to be sure that everything worked. TeX Live works, but I have some problems with some code that I've unashamedly ...
11 views

### Gnuplottex and Texshop — Cannot open Ghostscript for piped input!

I'm trying to compile the following file using latex and the gnuplottex package. For some reason I'm getting this error, even though I have already enabled shell escape and /usr/local/bin/gnuplot is ...
12 views

### Add Contents, List of Figures into TOC

Is it possible to add Contents, List of Figures into TOC?
43 views

### New hanging format for all paragraph in a newly defined environment

I'm trying to define a new environment where all paragraph should adopt a new indention. I tried to use \hangafter and \hangindent to do this. However， these commands only apply to the first para ...
33 views

### How to have multiple lines of intertext within align* environment?

So I have two sets of equations that I'd like to be aligned, but they're broken up by two lines of text, the second of which should be indented. MWE with Comments \documentclass{article} ...
13 views

### How do I add x and y labels to a plot I'm inserting as an image

I received some plots that were generated in Mathematica such as this one: http://imgur.com/ZHxkI7K I would like to insert them using something like: \begin{center} \large{\emph{\textbf{My ...
12 views

### Use of the makebox command within a node to ignore the space occupied by a minus sign

The following code renders the coordinate axes and a grid. I want only one modification. In the node for -10, I want the horizontal space occupied by the minus sign to be ignored. So, the -10 ...
10 views

### Using \textstyle with \pmod

If I'm in a displayed equation but I want the \sum symbol to appear as it does in inline formulas, I can just put \textstyle in my equation. I thought that writing \textstyle would also force \pmod to ...
18 views

### Draft watermark in both margins using the background package

I tried to adapt How to add “DRAFT” along the left/right margin? to have symmetrical "DRAFT"s along both margins, one running down the right margin, and one running down the left margin. Trying the ...
22 views

### How can drawing spiral by Latex

How can draw this spiral by Latex z-a_{n}=(e^{e^{-t}}e^{it})-1/2(e^{e^{-2*pi*n}+e^{e^{-2*pi*n+2pi}}), 0<=t<=infinty, n>=0,
9 views

### How can I print print a calendar double-sided (duplex)?

To print a Filofax-like calendar I installed the package tex-archive/macros/latex/contrib/calendar. Processing \documentclass[German,a4paper]{weekly} \begin{document} \begin{weekly} ...
16 views

### Doing a diagram with tikz

I'm trying to do a diagram. In this code, the diagonal lines have a good size, but i don't know how to make the horizontal lines bigger. Thanks for your advices! \begin{tikzcd}[every arrow/.append ...
17 views

### I want to suspend the numbering of my equations temporarily

Hopefully someone can help me with this. Essentially, I would like to suspend the numbering of my equations temporarily, as the title of the question suggests. For example: (1) (2) (3) (1) ...
2 views

### Short author list in sidenote citations, full list in references

In the Tufte handouts style, how can I cite a reference such that the corresponding side note cuts the author list to "First Author et al." when there are more than 2 authors? In the bibliography at ...
7 views

### How to color numbers in certain parts of a lstlisting

So, I'm a student and my teacher posted this kind of "how to make XML look cool in LaTeX". We were using it in class but I noticed some errors. For example, when printing numbers inside the labels ...
79 views

### How to hide page numbers but still be able to use them in TOC

How to hide page numbers in my document and still be able to display them in table of contents? Obviously, \pagenumbering{gobble} does work, but they are no more visible in the table of contents ...
134 views

### Is it possible to double underbrace?

$$\ln(L)\approx\ln(L_0) + \underbrace{\frac{\mathrm{d}\ln(L)}{\mathrm{d}\mu}\bigg|_n}_{=\dfrac{n}{\mu}-\large{1}}(\mu-n) + \frac{\mathrm{d^2}\ln(L)}{\mathrm{d}\mu^2}\bigg|_n\frac{(\mu-n)^2}{2!}$$ ...
47 views

### How can I align such equation?

This is my code, but I'm failing to achieve the same result as in the picture. \begin{eqnarray*} ...
23 views

### How do i get a linebreak in a tikz / titlesec chapter style for a long chapter name

i use a modified chapter style adapted from http://texblog.net/latex-archive/layout/fancy-chapter-tikz/ i tried to get a line break for a long chapter name with the varwidth package based on ...
14 views

### Why makes \wrapfigure my macro fragile?

I am developing a macro which puts out a figure in an "economic' way, i.e. if the figure is not wide, it uses \wrapfigure, otherwise \figure; see an MWE below. Putting \wrapfigure is a new insertion, ...
19 views

### Bibliography in the footer of each page

\documentclass{article} \usepackage[round]{natbib} \newcommand{\footcite}[1]{\footnote{\cite{#1}}} \begin{document} This is text with \cite{Goossens}. And\footcite{mozart:KV183}. ...
6 views

### How can I scroll through the pages of full-screen PDF viewer in TeXShop?

When I put the PDF viewer into full-screen mode (for example full-screen by itself or with the editor using El Capitan's split view feature, which is actually what I want to do) I can no longer scroll ...
21 views

### Ignoring redefined label

How can I make LaTeX ignore a \label that is re-used? That is, if I define a label twice, and then cross-reference it, I would like the reference to indicate the first definition of the label. For ...
24 views

I have drawn a rounded box around my equations using this code : \usepackage[customcolors]{hf-tikz} \usepackage[framemethod=tikz]{mdframed} \hfsetbordercolor{green} ...
406 views

### Using ** instead of ^

I am used to use ** instead of ^. Is it possible to somehow define macro that would interpret ** as ^? I know that I can write ** and in the end replace it with ^ but that macro would be much more ...
10 views

I am trying to use Latin Modern fonts in my document (using MikTeX in Windows 10, 64-bit). I have the following in my header: \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
16 views

### Long text + lists in a single tabular cell

I have been writing on a project on LaTeX that involves writing tables with a lot of text and some lists in it. Please look at the exemple below (Sorry for the poor quality) : Here is the LaTeX ...
20 views

### widening toprule et al. in booktabs

I have two tables side by side. I want to trick readers into seeing this as one table, by widening the toprule command. In the MWE below I want to join the toprule of the cats table to the dogs ...
73 views

### How to tell csquotes to italicize quotes?

I have a very stubborn professor who requires italicized quotes. So I have a document full of quotes, labeled with \enquote{}. How can I easily change all of them to be in italic ? I couldn't find ...

15 30 50 per page