# All Questions

429 views

### Showing how to solve an equation in LaTeX

Is there a package that would allow me to draw a horizontal line in math mode, like what is suggested below? \begin{align*} x + 2 &= 3\\ % First equation -2 &= -2\\ % Second equation %% ...
72 views
+100

### Hide specific ybar when no used (no values) in pgfplots

I am trying to plot the results of a survey. However, I want to turn one bar (the no answer) on and off according to the results. That is, if there is no empty answers, there is no need to show it. ...
68 views

### Unable to use utf8 with the LyX ClassicThesis version 4.1

This is a question about using UTF-8 symbols (e.g. å, Ä, Ö) in the LyX version of ClassicThesis. Using such symbols in the main document lyx files work without any changes at all to the ClassicThesis ...
14 views

### Modify the dash in biblatex ibid

I'm using \usepackage[backend=biber,style=authoryear-ibid]{biblatex} Is it possible to modify the dash used in the bibliography to denote the same author by another symbol (e.g. a much longer ...
14 views

### How to pass an argument as a new command's name? [duplicate]

5 views

I keep getting these weird errors when trying to compile with Asymptote. I compile with pdflatex, then asymptote, then pdflatex. The error is as stated in the title. For example, when building ...
28 views

### How do I cite both author and year in biblatex-mla?

I'm wondering if there's an efficient way to cite both the author and year, similar to what you get with biblatex's \textcite i.e. Author (year), when using biblatex-mla. Right now I'm using a quite ...
28 views

### Large gap in typesetting before group of displayed equations

I'm new to LaTeX; my lab professor said it would be great to have our first lab typed up nicely. I plan on doing research in my future, so I figured learning LaTeX early would be an excellent ...
9 views

### Remove white space before landscape

I am inserting a landscape figure. \begin{landscape} \begin{figure} \centering \includegraphics[width=\linewidth]{figures/sensor_diffs.jpg} \caption{Example of a single rep in which sensors are fused ...
25 views

### Missing control sequence inserted ressubheading

First-time LaTeX user here! I'm using Overleaf (used to be WriteLatex) and when trying to use one of their CV templates, I get an error without event typing a single letter in the code. Template: ...
51 views

### Commuting diagrams with two cells in tikz or anything?

I am trying to typeset the following diagram, which is part of the definition of Kan extension, using xymatrix. \xymatrix@R=30pt@C=30pt{ \X \ar[rrr]^{F} \ar[ddrr]_{K} &&& \Y \\ ...
22 views

### How to include graphics inside the section name

I am trying to insert an icon (a pdf file) literally next to the section name. I want the little shield icon to be where the <Icon> is. The code to generate this image is: ...
14 views

### \xpatchcmd defines macros when applied to undefined commands

I stumbled over this feature (it's part of a bigger question, but I splitted it into two questions): Say, that we want to use \xpatchcmd (from xpatch) or \patchcmd (from etoolbox) and apply those ...
15 views

### Placing text between horizontal lines generated by \rule: equispacing

How to fix the vertical spacing between the text and the lines? In the following MWE the vertical space between the text and the line below it is much greater than the vertical space between the text ...
21 views

### How does PGFplots calculate trig functions?

In plotting the graph from my last question I have discovered that the plots I'm getting from PGFplots are not entirely correct. I was attempting to plot (4.9/(w^2))*(cosh(w*x)-cos(w*x)) for multiple ...
723 views

### Spanish.ldf error

I just installed MiKTeX 2.9 x64 on my windows 8.1 laptop. I use Texmaker as a TeX editor. I'm trying to compile a document with these packages: \usepackage[utf8]{inputenc} ...
36 views

### TeX expert needed: how to \setto(optimal)width?

there is a problem I have been trying to solve for a while but without success so far. As far as I know, TeX is very good at appropriately breaking text lines with respect to a fixed container width. ...
39 views

### Problems with pattern color

Why in the following MWE in all shapes the pattern color is as in the first one regardless that it is defined differently? %%%% pattern-color \documentclass[tikz,border=5mm]{standalone} ...
24 views

### is pdfTeX from TeX Live 2015 supposed to work with LyX 2.1.3? [on hold]

I am trying to compile a PDF in LyX with the pretest TeX engines installed, and so far they break. I don't recall what else would have changed from using the folder instead of the 2014 analog. pdfTeX ...
64 views

### Drawing cycles using TikZ

I would like to draw cycles (or polygonal paths) using TikZ. I provide code in which I try to do this using rectangular coordinates and polar coordinates. In the first drawing, I think the cycle is ...
82 views

### \foreach within \draw doesn't seem to work

I'm desperately trying to make this work \documentclass{minimal} \usepackage{tikz} \newcommand\polygon[3][]{ \pgfmathsetmacro{\angle}{360/#2} \pgfmathsetmacro{\startangle}{0} ...
26 views

### plotting linear programming on a graph using Latex code [on hold]

could someone help me solve the problem of using latex code to generate Phase Portrait diagram from the equations below; x ̇=-4x+y y ...
33 views

### Latex code to plot linear programming on a graph [on hold]

I am in a big problem. And I would like to have a Latex code for the equations below that would produce three (3) graphs on the same sheet. S'=0.085-0.0182si-0.098s I'=0.182si-0.178i ...
24 views

27 views

### How to share a tex file for review with someone that does not know latex? [duplicate]

I would like to know if there are practical ways of sharing latex texts for review with people that are not familiar with latex. Currently I use pygmentise: pygmentize -f html -O full -o ...
61 views

### Getting an error when defining a macro in a TiKZ picture

I like a certain style of vertices in my TikZ drawings so I want to define a macro to save time formatting. It has two arguments, one names the node, the next is its location. It should have a blank ...
3k views

### What is a good strategy for obtaining comments on a LaTeX document from non-LaTeX using collaborators?

Context: I prepare my scientific documents using LaTeX and compile to a PDF. I often need to seek comments on drafts from collaborators who do not use LaTeX. Most of these collaborators use Windows ...
93 views

### No bibtex style file for clickable links without displaying the url explicitly?

Having the same problem as bibtex - how to have a web link without the url (ideally to have a link on the number), I am wondering: Is there really no freely accessible bibtex style (so as I do not ...
5k views

### BibTex: Easy way to drop article titles from references?

I would like to generate a bibliography for a grant application with a minimal structure. Ideally, something like science.bst i.e. omitting the article title. A. N. Clarkson, B. S. Huang, S. E. ...
88 views

### Completely hermetic, local TEX install

I have an unusual situation. My deployment environment needs to place pdftex and associated files into a custom directory that is not known until deploy time, and changes from one server to the next ...
41 views

### How to format an enumerate differently only if it has a single item?

I want to do an enumerate that is formatted in a way if it has multiple items, but in a different way if it has a single item. Something like this: A list with multiple items: #1 Item1 #2 Item2 #3 ...
24 views

### Sharelatex: figure not being rendered when using Springer's monograph template

This Sharelatex project renders a figure with four pdf images correctly. Neither of the ways in which the figure is typeset works when using Springer's Monograph template (link, look at the part.tex ...
7k views

### Comparison: Sharelatex vs Writelatex

So far I didn't have the chance to use neither of these services. Before starting, I would like to hear your opinions. What are the advantages and disadvantages? Why should I choose one and not the ...
82 views

### LaTeX “Variables” - \@varname

I'm currently in the process of writing my first document class file (a personalized resume class), and I want to get a better understanding of what exactly I'm doing. So, right now I'm setting up ...
36 views

### how to add citation to figure like Figure:.2.4[1]

how to add citation to figure like Figure:.2.4[1] Because I am adding \cite{b1} in caption it will print index.So where to add citation so it will add on figure.
32 views

### Ignoring rotation in pgf decorations

Edit: I am interested in how this problem could or could not be solved using pgf decorations, not in how to draw this specific shape. I am trying to use pgf line decorations to draw dotted lines, ...
42 views

### Using Pandoc to transform Markdown to Beamer Latex Code?

According to http://pandoc.org/demos.html I see the command for turning an md file into a beamer pdf file. pandoc -t beamer SLIDES -o example8.pdf When I change the extension to tex instead ...
21 views

### Texmaker: how to auto-complete any environment?

Is there a way to get Texmaker to auto-complete any environment? I would like it to insert an \end{...} line for every \begin{...} line I write, regardless of the particular environment I opened. It ...
23 views

### Spanish language not working after update

I've recently updated my Lyx to the new 2.1 version. But when I try to compile my documents (in spanish language), I obtain the following "Undefined control sequence" error: \StartBabelCommands ...
55 views

### Copy-Paste error in LaTeX

When I try to copy some text from a Word page or pdf an paste it to LaTeX, I get the error below. Any idea how to fix this? PS: I am using LaTeX on a Mac While the text which I typed my self works ...
26 views

### When using custom path style in a tikz graph the quotes label isn't printed

I can put labels onto normal edges fine, but when the edge has a style applied to it, the label is no longer applied. Any idea what is going on/how to fix this? \documentclass{standalone} ...