2
votes
0answers
15 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
6 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
15 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
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 ...
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 ...
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: ...
0
votes
1answer
23 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
16 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
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 ...
4
votes
0answers
15 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
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\\ ...
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 ...
3
votes
1answer
156 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
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: ...
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
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. ...
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][]{% ...
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 ...
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
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
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
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 ...
2
votes
0answers
36 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
15 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
1answer
40 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
29 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
34 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
24 views

Unwanted vertical white space in tikz [on hold]

How to delete unwanted vertical white space in tikz
2
votes
0answers
61 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
28 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
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} ...
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 ...
3
votes
0answers
38 views

How do you NOT get an index entry in the TOC?

My problem is that I don't want the automated index entry to appear in the TOC but would rather add one manually. But no matter what I try, the automated entry always appears. I have tried ...
0
votes
0answers
11 views

Align environment produces double footnotes [duplicate]

I would like to add a footnote in the align environment. Unfortunately this produces the footnotes twice: \begin{align*} \footnote{Hey ho!} \end{align*}
0
votes
0answers
65 views

Ideas for a LaTeX editor to make it easier [on hold]

I am having some ideas that I'd like to share with the community about a Latex editor that would make Latex easier to use and would help us become more productive. I was inspired by other Latex ...
6
votes
3answers
52 views

Flip fancyhdr headrule even odd

I'm trying to achieve a short fading \headrule under page numbers. But I cannot figure out how to "flip" it on even/odd pages. Does anyone know how to manage that? I also get a warning saying that ...
0
votes
0answers
16 views

Find and replace a specific reference pattern by a regular expression for a chronological index [on hold]

For a chronological index (index in chronological order with a predefined non-alphabetical index list) I'd like to replace following entries (and many more of these types in my document), so that the ...
2
votes
2answers
34 views

\titlesec and chapter&section missing zero error

I've looked and looked on here for a possible answer but i'm coming short. I even referenced the titlesec .pdf instructions and still no clue. I'm having an issue with my \chapter in the main body, ...
2
votes
0answers
51 views

Beamer theme: not expected behaviours using different PDF readers

I wish to use hsrmbeamertheme in my dissertation. You can find and download it here: https://github.com/benjamin-weiss/hsrmbeamertheme . Unfortunately, I have found a lot of not expected behaviours ...
2
votes
1answer
29 views

Difference between \insertsectionnumber and \inserttocsectionnumber

The following beamer code \documentclass{beamer} \setbeamertemplate{section in toc}[sections numbered] \begin{document} \frame{\tableofcontents} \section{section one} ...

15 30 50 per page