Tag Info

New answers tagged

2

here's an approach that should give you the result you're looking for. \documentclass{article} \usepackage{amsmath} \newcommand{\pd}[2]{\frac{\partial {#1}}{\partial {#2}}} \begin{document} \setcounter{equation}{3} \begin{align} \begin{split}\smash[b]{\pd{EU}{\alpha}} &= d(\theta) U'(\pi_{1}) [G_{\alpha}(\alpha, \theta, \epsilon) - \bar{P} ...


2

Use \nonumber (or \notag) to avoid numbering a specific equation inside an align, otherwise it will be numbered (and you can \label-\ref it): \documentclass{article} \usepackage{amsmath,mathabx} \newcommand{\pd}[2]{\frac{\partial #1}{\partial #2}} \begin{document} \begin{align} \pd{EU}{\alpha} &= d(\theta) U'(\pi_{1}) \bigl[G_{\alpha}(\alpha, ...


3

Is this what you want: \documentclass{article} \usepackage{amsmath} \newcommand{\pd}[2]{\frac{\partial {#1}}{\partial {#2}}} \begin{document} \begin{align} \begin{split} \pd{EU}{\alpha} &= d(\theta) U'(\pi_{1}) [G_{\alpha}(\alpha, \theta, \epsilon) - \bar{P} C_{\alpha}(\alpha, \theta)] \\ &\quad+ (1-d(\theta)) U'(\pi_{0}) [G_{\alpha}(\alpha, ...


0

Changing the \LoadClass{article} to \LoadClass{book} Follow piptin, modify 2.1 \edef\@queslabel{question@\arabic{question}}% to \edef\@queslabel{question@\arabic{chapter}@\arabic{section}@\arabic{subsection}@\arabic{question}}% 2.2 \edef\@partlabel{part@\arabic{question}@\arabic{partno}}% to ...


3

you should really have posted these as two separate questions, instead of adding on to the first. but you could try \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \mathbf{q}=(\mu_1, \mu_2, \ldots ,\mu_{n-2}, \mu_n )^{\text{T}} \label{2} \end{equation} and \begin{equation} L = \log(l) = ...


5

Example, how this can be typeset: \documentclass[a5paper]{article} \usepackage{amsmath} \newcommand*{\transpose}{\mathrm{T}} \newcommand*{\vc}[1]{\mathhbf{#1}} % \vec and \vector are already defined \begin{document} \begin{equation} \label{q-def} \vc{q} = (\mu_1, \mu_2, \dots, \mu_{n-1}, \mu_{n})^\transpose \end{equation} Equation~\eqref{q-def} ...


6

You can draw curly braces by using decorations. I shifted the ylabel on the y axis by 1mm because it was right in the middle of the brace, and did a similar thing to the node in the middle of the plot. I also changed the font size to 12pt because my editor was complaining, so you should change it back, but the drawing should be the same. Output Code ...


2

This should solve the issue. The _ will have the right category code when the .aux file is read at begin document. I believe the problem is in the fact that arguments are grabbed “too soon” when hyperref is loaded. \documentclass{article} \usepackage{hyperref} \makeatletter \AtBeginDocument{ \catcode`_=12 \begingroup\lccode`~=`_ ...


2

I've just realized that there is, in fact, a simple solution. First, a demonstration of what happens normally (a MWE if you will): settings.outformat="png"; settings.render=4; import three; size(4cm); currentprojection = perspective(2,0.7,0.8); path3 thecircle = circle(c=X, r=0.5, normal=X); surface cyl = extrude(thecircle, -2X); draw(cyl, ...


2

@ is not a letter, which can be used in command names. It can be used in class and package files, where @ has category code letter. Otherwise \makeatletter and \makeatother can be used to change the category code: \makeatletter \newcommand{\reqlabel}[2]{% \label{#1}% \protected@write\@auxout{}{% \string \newlabel {#1_long}{{\string\ref{#1} ...


0

David's wise answer guided me to the solution. I am just improving his answer but I lack reputation points to add a comment. First, it works also for longtabu. Second, we can also add a table caption with: \makeatletter \def\tabcaption{% \refstepcounter{table}% \@dblarg{\@caption{table}}} \makeatother Then use: \tabcaption{my caption} Third, I ...


0

This seems to be working \usepackage{pdfpages} \makeatletter \renewcommand{\AM@addtolist@hook}{\phantomsection} \makeatother both before and after loading hyperref I just looked into the code for addtolist in pdfpages


0

With the setting \setlength{<some parameter>}{<length>}, you can change the default settings as you wish. Here, I changed the \selfmesswidth parameter: \documentclass{article} \usepackage{msc} \begin{document} \begin{msc}{test} \setlength{\selfmesswidth}{3cm} \setlength{\envinstdist}{3.5cm} % According to the above one \declinst{a}{}{$A$} ...


0

After some time, a few hours actually, I finally figured out how to do it! \documentclass{article} \usepackage{msc} \begin{document} \begin{msc}{test} \drawframe = \declinst{a}{}{$A$} \selfmesswidth = 5cm %First outgoing \lostsymbolradius = 0px \lost[1]{label}{}{a} \nextlevel \nextlevel %First receiving \lostsymbolradius = 0px \found[1]{label2}{}{a} ...


1

Just add another label after the \\. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{subequations} \begin{align} \label{eq:pv-omega} \hat{p} = pv \ll j\Omega \quad \Rightarrow \quad \gamma=2,\\ \label{eq:pv-omega2} \hat{p} = pv \gg j\Omega \quad \Rightarrow \quad \gamma=0. \end{align} \end{subequations} I solved ...


7

They are lot of questions and I did lot of modifications, hence there is no point in giving the list of modifications made. Please study the code: \documentclass[13pt,a4paper,headlines=6,headinclude=true]{scrartcl} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \usetikzlibrary{intersections} \begin{document} \begin{tikzpicture}[scale=1.5] ...


2

A way of doing this with MetaPost, for whom it may interest. Mainly a question of choosing the relevant scale for the x-axis, and of allowing a loop inside the labels of this axis, thanks to the \mplibtextextlabel{enable} instruction in the preamble. This makes the string arguments of each label commands be typeset by (Lua)LaTeX through the textext macro, ...


1

A PSTricks solution: \documentclass{article} \usepackage[margin = 3cm]{geometry} % avoid `overfull \hbox' warning \usepackage{pst-plot} % axes and grid \usepackage{siunitx} % values with units on x-axis \ExplSyntaxOn \cs_new_eq:NN \calc \fp_eval:n \ExplSyntaxOff % redefines x-axis \makeatletter \def\pst@@@hlabel#1{\ang{\calc{30*#1}}} \makeatother ...


0

My answer is based on Alan Munn's, which has a few flaws (see my comment there). Note also that the numbers you give are not the coordinates of the top and bottom of the error bars, but rather the error bars' length. \documentclass{article} \usepackage{pgfplots} \usepackage{rotating} \begin{document} \documentclass{article} \usepackage{tikz} ...


4

I slightly changed your \foreach statement to include [evaluate=\x as \degree using int(\x*30)] and $\degree^\circ$ to print degrees. You can change the steps by changing the number 30. Output Code \documentclass[margin=10pt]{standalone} \usepackage{amsmath,amsfonts,amsthm} \usepackage{gensymb} \usepackage{tikz} \begin{document} \begin{tikzpicture} ...


3

You can use \pgfmathparse to multiply. Since you get the decimals, you may need int also like node[anchor = north] {\pgfmathparse{int(30*\x)}$\SI{\pgfmathresult}{\degree}$}; Note that I have used siunitx for the degrees. \documentclass{article} \usepackage{tikz} \usepackage{siunitx} \begin{document} \begin{tikzpicture} \draw[step = 0.5 cm, gray, very ...



Top 50 recent answers are included