当前位置:网站首页>【TeXstudio】【1】分式dfrac,tfrac Undefined control squence错误

【TeXstudio】【1】分式dfrac,tfrac Undefined control squence错误

2022-06-09 08:19:00 异史君

前言

我不是个头脑机灵的人,理解一件事需要有个过程,但你得给我时间,到时总会完全理解你的,而且比世上任何人都理解得透彻——《挪威的森林》
在这里插入图片描述


         \;\\\;\\\;

dfrac, tfrac , Undefined control squence

常用包讲解:LaTeX 编辑部

TeX Live + TeXstudio 学习专栏:LaTeX学习之旅

   \\\;

加个包amsmath

\documentclass{
    ctexart}
\usepackage{
    amsmath}
\title{
    魂阵}
\author{
    异史君}
\date{
    \today}

一般我都用的frac,但是看了tfrac,frac,dfrac,cfrac区别,还是dfrac好看点

其实Vscode也可以用来编辑markdown和XeLatex,因为latex实际运行在TeX Live上的。但是考虑到TeXstudio用起来很方便。
         \;\\\;\\\;

什么粗体、斜体、左对齐等等格式代码不需要自己写,点一下左侧的button就行。如果用Vscode的话,什么都要自己写。

\documentclass{
    ctexart}
\usepackage{
    amsmath}
\usepackage{
    amsbsy}
\usepackage{
    algorithm}
\title{
    魂阵}
\author{
    异史君}
\date{
    \today}






%正文
\begin{
    document}
	\maketitle
	 这才是标题
	\section{
    Hello China}
	\section{
    APPENDIX} 
曾经的L\textit{
    aTeX的中文}支持是比较麻烦的一件事,
但是现在使用MikTeX+texStudio的中文支持非常容易。
只\textbf{
    \underline{
    }要把开头}的 documentclass \{
    atricle\} 
换成 documentclass \{
    ctexart\} 就可以了。 
如果是第一次使用ctex\begin{
    flushleft}
	art的
\end{
    flushleft}话,会自动
下载和安\begin{
    center}
	之后就不会再
\end{
    center}\begin{
    flushright}
装宏包和模板
\end{
    flushright},
下载\\
\begin{
    flushleft}
	了。
	
\end{
    flushleft}
	
	$ kasd $
$$f=\int x+y$$
	$h_{
    2}^{
    \sqrt{
    22}}$
	$jjj\tfrac{
    12}{
    321}$
	$sd+221sdd\dfrac{
    123}{
    213}$
\end{
    document}

在这里插入图片描述

TeX Live和TeXstudio

直接去官网下载最新版。

前者要安装1~2个小时。如果你装了MiTex的话(好像叫这个),记得删掉,目前只有TeXstudio最好用(个人局限)。

原网站

版权声明
本文为[异史君]所创,转载请带上原文链接,感谢
https://demllie.blog.csdn.net/article/details/124984351

随机推荐