10
votes
4answers
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 %% ...
6
votes
1answer
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. ...
1
vote
1answer
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 ...
2
votes
2answers
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 ...
2
votes
0answers
14 views

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

\documentclass{article} \newcommand*{\DefineRealCommand}[1] { {The real command name is: #1} \newcommand*{\#1}{I am the real command.} } \DefineRealCommand{HelloCommand} \begin{document} ...
0
votes
0answers
5 views

Building with asymptote: file-2.tex not found

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 ...
2
votes
0answers
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 ...
1
vote
2answers
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 ...
2
votes
2answers
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 ...
0
votes
2answers
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: ...
1
vote
0answers
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 \\ ...
4
votes
1answer
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: ...
4
votes
0answers
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 ...
2
votes
1answer
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 ...
0
votes
1answer
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 ...
3
votes
1answer
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} ...
2
votes
1answer
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. ...
3
votes
1answer
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} ...
0
votes
0answers
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 ...
0
votes
1answer
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 ...
4
votes
2answers
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} ...
-1
votes
0answers
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 ...
-1
votes
0answers
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 ...
2
votes
1answer
24 views

\begin{align} not working as expected

In this small snippet of code, I'm doing quick derivation to arrive at an equation to be used later in the analysis: $ |\vec{F}|=q|\vec{v}||\vec{B}|sin(\theta)\\ m\frac{v^2}{r}=qvB\\ ...
3
votes
1answer
107 views

How to set maxheight of a combination in ConTeXt?

I want to do a combination that fits in my page without taking care of figures dimensions itself. I tried this: \placefigure[][myfigure] {mycaption} {\startcombination[1*4, ...
4
votes
2answers
178 views

TexStudio: Use dictionary for completion

Is it somehow possible to extend TexStudio to use dictionary words in autocompletion? For example, when I type "som", I want the autocompletion list to show me all words from the dictionary starting ...
21
votes
5answers
631 views

It doesn't hyphenate words ending with “—”

UPDATE Well. After a while, I decided to see again about this “problem”, and just discovered that in pdfLaTeX, using \usepackage[utf8]{inputenc} and the — (the unicode —, not the ligature ---) it ...
2
votes
0answers
35 views

How to compute and show new value from linear regression

The following MWE shows a template I use in university to show calibration data and the corresponding linear regression. Now I was asking if I can compute an $X$-value for a given $Y$-value and show ...
14
votes
1answer
402 views

XeTeX in OpenBSD

How could I get XeTeX in OpenBSD? I have tried to: pkg_add texlive_base-2012, but it tries to install so much more that I ran out of space. run the install-tl perl script for TL13, but even if I ...
3
votes
1answer
155 views

Simple arithmetic in an exam

How can I do some simple calculations in LaTeX? Specifically, I want to divide \numpoints (part of the exam package) by 1.10. That is, I want to do something like this: Grade: ...
1
vote
0answers
23 views

Custom tikzmark creates error

I've defined the commands \newcommand{\tikzmark}[2]{% \tikz[overlay,remember picture,baseline] \node[anchor=base] (#1) {$#2$}; } \newcommand{\DrawVLine}[3][]{% ...
0
votes
0answers
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 ...
1
vote
2answers
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 ...
32
votes
8answers
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 ...
2
votes
1answer
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 ...
4
votes
3answers
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. ...
6
votes
0answers
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 ...
2
votes
1answer
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 ...
1
vote
0answers
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 ...
35
votes
1answer
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 ...
3
votes
2answers
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 ...
1
vote
1answer
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.
5
votes
2answers
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, ...
3
votes
1answer
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 ...
2
votes
1answer
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 ...
3
votes
0answers
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 ...
3
votes
2answers
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 ...
3
votes
1answer
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} ...
10
votes
1answer
584 views

Typography and style - good choices for font styles in TikZ or pgfplots graphics?

When creating graphics or graphs with TikZ and/or pgfplots, one can put several commands to format the text to his likings. My question is: what are sound possibilities to format the elements in said ...
0
votes
0answers
182 views

Tabular derivations with bussproofs [duplicate]

I am trying to typeset derivations in the CCG grammar formalism. These are just derivations as in type theory, but with words as the initial premises. I've tried to typeset them using the bussproof ...

15 30 50 per page