Quando estou trabalhando em um ambiente matemático e quero digitar algo como \sec^2x
, assim que digito ^
depois do \sec
, ele completa automaticamente o \sec
to \section
. Ou quando estou trabalhando em um tikzpicture
ambiente e quero digitar rotate = 90
, ele será preenchido automaticamente rotate =
assim rotate around x=
que eu digitar o =
. Existe uma maneira de interromper o preenchimento automático de comandos específicos? Não quero desistir de colocar automaticamente o \end{}
para qualquer ambiente em que estou trabalhando.
Editar: estou trabalhando no TeXstudio versão 4.7.2. Alguns exemplos são: estou escrevendo algumas identidades pitagóricas:
\[\tan^2\theta=\sec^2\theta-1\]
Ou estou desenhando um diagrama e quero alguns nós girados:
\begin{tikzpicture}
\draw (0,0) -- (0,3) -- (3,0) -- (0,0);
\node[anchor = south, rotate = 90] at (0,1.5) {Silo};
\node[anchor = south, rotate = -90] at (0,1.5) {50 feet};
\node[anchor = north] at (1.5,0) {Shadow};
\node[anchor = south] at (1.5,0) {$L$};
\node[anchor = south east, xshift = -.4cm] at (3,0) {$\theta$};
\end{tikzpicture}
Eu espero que isto esclareça as coisas.
Documento de teste completo:
\documentclass{article}
\usepackage[utf8]{inputenc}
\title{College Precalculus Solutions}
\author{Sal Brusco}
\date{\today}
\usepackage{amsthm}
\usepackage{mathtools}
\usepackage{xfrac}
\usepackage{polynom} % polynomial long and synthetic division
\usepackage{xcolor} % highlight equations
\usepackage{array}
\usepackage{stmaryrd} %for the integer function \llbracket \rrbracket
\usepackage{dsfont} %for number sets \mathds{Z}
\usepackage{amssymb} %for square
\usepackage{parskip} % this adds space between paragraphs
\usepackage[top=1in,bottom=1in,left=1in,right=1in]{geometry}
\usepackage{enumitem} % numbering
\usepackage{amsmath} % aligning expressions and equations
\usepackage{fancyhdr} % gets me the heading at the top of each page
\usepackage{url} % gets the fancy url in the reference
\usepackage{graphicx} % i can put pictures in
\usepackage{pgfplots} %graphs
\usepackage{multicol} %put stuff in columns with \begin{multicol}{n}
\usepackage{multirow} %\multirow{number of rows}{width}{text}
\usepackage{cancel}
\usepackage{wrapfig}%so that pictures and text can appear side by side with
%\begin{wrapfig}{alignment}{image size}
% \inputgraphics...
%\end{wrapfig}
%then text
\usepackage{tikz}
\usetikzlibrary{calc}
\usetikzlibrary{angles,quotes} %triangles
\pgfplotsset{compat=1.17}
% the following is the header
\pagestyle{fancy}
\fancyhf{}
\setlength{\headheight}{15pt}
\fancyhead[L]{\nouppercase{\leftmark}}
\fancyhead[R]{\rightmark}
\rfoot{Page \thepage}
\renewcommand{\headrulewidth}{.5pt}
\newcounter{Ex}
\newenvironment{Ex}[ 1][]{
\ifdim\pagetotal=0pt
\else
\rule{3in}{1px}
\vspace{-1em}
\fi
\refstepcounter{Ex}
\par\medskip
\textbf{Ex~\theEx: #1}
\rmfamily}{\medskip}
\numberwithin{Ex}{subsection} %puts the subsection number before example number
\newcommand{\degs}{^\circ}
\newcommand{\infinf}{-\infty,\infty}
\newcommand{\done}{\hspace{\fill}$\blacksquare$}
\begin{document}
Pythagorean Identities:
\[\sin^2\theta=1-\cos^2\theta\hspace{1in}\tan^2\theta=\sec^2\theta-1\hspace{1in}1=\csc^2\theta-\cot^2\theta\]
\begin{Ex}
Picture first.
\begin{center}
\begin{tikzpicture}
\draw (0,0) -- (0,3) -- (3,0) -- (0,0);
\node[anchor = south, rotate = 90] at (0,1.5) {Silo};
\node[anchor = south, rotate = -90] at (0,1.5) {50 feet};
\node[anchor = north] at (1.5,0) {Shadow};
\node[anchor = south] at (1.5,0) {$L$};
\node[anchor = south east, xshift = -.4cm] at (3,0) {$\theta$};
\end{tikzpicture}
\end{center}
Now we have to make a function of $\theta$ that finds $L$. Well we're dealing with the opposite and adjacent, so we use tangent.
\begin{align*}
\tan\theta &= \dfrac{50}{L}\\
L &= \dfrac{50}{\tan\theta} = L(\theta)
\end{align*}
Part 1 done. We have the function. Now we just substitute the values into the function. For $10\degs$, $L(10) \approx 283.56$ feet. For $30\degs$, $L(30)\approx 86.60$ feet. For $50\degs$, $L(50)\approx 41.96$ feet.
\end{Ex}
\end{document}