1
vote
1answer
10 views

Increasing horizontal space between chapter number and chapter title in scrreprt

I would like to change the distance between the chapter number and the chapter text. A poor way to do it would be renew \thechapter, but this affects section titles too. Other answers seem to suggest ...
2
votes
2answers
16 views

Transparency in itemizing

\documentclass{beamer} \setbeamercovered{transparent} \begin{document} \begin{frame} \begin{itemize} \item<1-> a \item<2-> b \item<3-> c \end{itemize} \end{frame} ...
0
votes
0answers
10 views

Incollection entry with separate years for book and chapter

I want to cite a chapter in a book, hence I think I should use incollection. However I would need to specify two years: one for the year the book was published one for the year the chapter was ...
0
votes
0answers
9 views

mktexpk error regarding missing font

I just set up the MacTeX-2014 distribution on my MacBook working OS X Yosemite 10.10. As i try to build a document on which i already worked without a problem on said machine before clean installing ...
0
votes
0answers
15 views

How to align item labels?

When I try to answer the a matching question in my assignment, I find that my final PDF of the four answers shown above are not aligned with each other. It seems that the lowercase "b" is taking more ...
3
votes
1answer
18 views

A question about ticks on a graph

I am trying to make a graph with a grid in the background. I want it to be standard windows size, but I only want numbers next to the -10 and 10 on both the x axis and y axis. I am using this code ...
1
vote
1answer
24 views

Missing } inserted. \end{alignat}? why this error keeps on popping up?

here is a part of my code, which I am trying to run. \begin{alignat}{2} [M]: \max_&Z ~ \label{eqnP27}\\ \mbox{s.t.}~ %capacity constraints & \sum_{k \in H} y_{k} \leq ...
2
votes
2answers
39 views

Change citation style from square brackets to forward slashes

In latex, how can I change citation style from square brackets (e.g. "As authors in [1] show ...") to forward slashes ("As authors in /1/ show ...")? EDIT To answer the comments below... I don't know ...
2
votes
0answers
23 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
13 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
2answers
20 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
2answers
16 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 ...
1
vote
1answer
33 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 ...
4
votes
1answer
51 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: ...
1
vote
1answer
30 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 ...
2
votes
1answer
22 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
0answers
30 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 ...
4
votes
0answers
21 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 ...
-1
votes
0answers
32 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
38 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
30 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\\ ...
0
votes
1answer
71 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 ...
3
votes
1answer
197 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: ...
0
votes
2answers
27 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: ...
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 ...
2
votes
1answer
39 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. ...
1
vote
0answers
25 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][]{% ...
2
votes
0answers
33 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 ...
4
votes
2answers
86 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
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 ...
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 ...
2
votes
1answer
22 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
24 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
97 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 ...
2
votes
0answers
39 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 ...
3
votes
1answer
17 views

mhchem macro in subscript

Consider the following MWE \documentclass{article} \usepackage[version=3]{mhchem} \begin{document} \begin{equation*} % c_\ce{CO2} not working c_{\ce{CO2}} \quad c_\text{working} \end{equation*} ...
3
votes
2answers
48 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} ...
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
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 ...
4
votes
1answer
30 views

Option for Coloring the Background of pgfplots

I have been looking for a simple answer for this with no success. I want to plot the function y=x^2, and color the background of the whole box made up by the axis environment. Intuitively, one would ...
2
votes
0answers
44 views

When having too much figures, force LaTeX to change the geometry of the page to fit more figures on one page when text is over

My problem is the following : I have a lot of figures to add in my report. These figures are usually about 0.4 of the height of the page. With the caption, the height is more like 0.55 or something. ...
4
votes
1answer
38 views

Hyperbola instead of ellipse. Note the code below to the ellipse, there is a similar code for and hyperbole?

\documentclass[11pt,a4paper]{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=1]; \draw (0,0) ellipse (5 and 3); \end{tikzpicture} \end{document}
2
votes
0answers
22 views

preventing automatic detection of email addresses [on hold]

I'm trying to use this resume template. When I compile the document, pdflatex is automatically detecting the email addresses in the header and formatting it as a clickable (mailto) link. I would like ...
0
votes
0answers
25 views

Unwanted vertical white space in tikz [on hold]

How to delete unwanted vertical white space in tikz
2
votes
0answers
63 views

Need a little guidance for latex document design

I want to use LaTEX to write a fascicle (a small book part of a bigger set of books). So I need some specialized design. For example a specialized design for headers, specialized edging, rearranged ...
1
vote
1answer
31 views

Error compiling code matlab in latex

good morning, someone help me? MWE: \documentclass[preview]{standalone} \usepackage[latin1]{inputenc} \usepackage[spanish]{babel} \usepackage{latexsym,amsmath,amssymb,amsfonts} ...
4
votes
1answer
15 views

Typesetting verse with line numbers directly adjacent (not in margin)

When I quote verse (in a document typeset by XeLaTeX), I would like to be able to place line numbers directly adjacent to the lines, not in the margin to the left. For example: ...
3
votes
1answer
30 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} ...
1
vote
1answer
22 views

Cant edit a document on first install of tex maker

just bought myself a new laptop today, a macbook pro. I am in the middle of doing my masters dissertation so i download tex maker, plug in my usb and get editing what i already have. However for some ...
3
votes
1answer
22 views

Fill section entries in table of contents with dots (using scrartcl)

I use scrartcl and I want to … have list of figures and list of tables listed in the table of contents fill the space between sections and their pagenumbers with dots in the table of contents leave ...

15 30 50 per page