Tag Info

Hot answers tagged

6

The revtex4 class adds a prefix to the cross-references to subsections since it uses \def\p@subsection{\thesection\,} so, in addition to \def\thesubsection{\thesection.\Alph{subsection}} you will also need \def\p@subsection{} to suppress the prefix: \documentclass{revtex4} \makeatletter \def\thesubsection{\thesection.\Alph{subsection}} ...


5

I'd suggest you to use the powerful forest package instead; it's more versatile, it has a lot of built-in features to customize trees and will give you shorter code. A simple example showing multi-line nodes: The code: \documentclass{article} \usepackage{forest} \begin{document} \begin{forest} for tree={ l sep=30pt, parent anchor=south, ...


3

\label records the last referencable item, which is the section head in your case. Normally to refer to a formula you would use equation or align but sometimes in tables you can do it "by hand" \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{babel} \usepackage{float} ...


3

Use of node[pos=xx, above]{<number>} at the end of the draw. pos=0 means the staring point while pos=1 means the ending point. In addition to above, there are left, right, below and above right ... variants available. \documentclass[a4paper,12pt]{article} \usepackage{tikz, tikz-qtree} \begin{document} \begin{tikzpicture} \tikzset{every tree ...


2

Some package should be written for that, to account for more possibilities than what my proposal already allows (1), keeping quite close to your initial set-up. (1) for example, to sort lexicographically the requirements, here they are already in correct order from the way they are generated. I have added hyperref to check that the automatically produced ...


1

What I did here was use \meaning to determine how the equation environment is defined. I then fashioned an identity environment on the same lines, using a different counter, and label format (brackets, not parens). It becomes the user's responsibility to use the appropriate equation or identity environment. \documentclass{article} \usepackage[T1]{fontenc} ...


1

It is possible to asjusting the label positioning manually. \documentclass[xcolor=x11names]{article} \usepackage{graphicx} \usepackage{tikz,pgfplots} \pgfplotsset{compat=1.9} \usepackage{palatino} \usepackage[euler-digits]{eulervm} \begin{document} \centering \begin{tikzpicture} % \newcommand{\scaling}{0.5} \pgfplotsset{ % ...


1

An alternative is to disable the axis label via ylabel={} then add a node for y label on the left side. clip=false is required, though. Code \documentclass[xcolor=x11names]{article} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % General Setup \usepackage{graphicx} \usepackage{tikz,pgfplots} \pgfplotsset{compat=1.9} \usepackage{palatino} ...


1

Just use \newcommand\myeqA{$a+b=c$} \newcommand\myeqB{$c+d=e$} then when you want the first to appear, use \myeqA.


1

Because the question doesn't specify the used format (LaTeX or something else) I give the format-independent answer: \def\A{$a+b=c$} \def\B{$c+d=e$} Warning: The \newcommand is LaTeX specific feature.



Only top voted, non community-wiki answers of a minimum length are eligible