• Latex 常用代码


    Latex 工具网站:

    手写符号识别:Detexify

    可以用来给出不同字体的Latex代码

    Latex_Code to Png:Sciweavers (还有其他好玩的功能)

    在线生成Latex表格代码:Tablesgenerator 

     Tikz教程和实例:Tikz

    带负号矩阵的元素对齐:

     1 %------------Latex preamble--------------
     2 \newcommand*{\matminus}{%
     3   \leavevmode
     4   \hphantom{0}%
     5   \llap{%
     6     \settowidth{\dimen0 }{$0$}%
     7     \resizebox{1.1\dimen0 }{\height}{$-$}%
     8   }%
     9 }
    10 
    11 %--------------Example---------------
    12 \[
    13     A = \begin{pmatrix*}
    14     \matminus1 & \matminus10 & 1 \\
    15     100 & 5 & 16 \\
    16     13 & 7 & 7
    17     \end{pmatrix*}
    18 \]

    参考:tex.stackexchange

    自适应范数符号

    1 \newcommand{\norm}[1]{\left\lVert#1\right\rVert}

    参考:tex.stackexchange

    Latex 插图常用指令,参考CSDN

    1 \includegraphics{sample.png}
    2 \includegraphics[width=0.8\textwidth]{sample.png}
    3 \includegraphics[scale=0.8]{sample.png}

    图片、表格取消浮动,float宏包结合H选项

    1 \usepackage{float}
    2 % ...
    3 \begin{figure}[H]
    4 % ...
    5 \begin{table}[H]
    6 % ...

    图片引用(利用hypcap,拒绝跳转到标题)

    1 \usepackage{caption}
    2 \captionsetup{hypcap=true}
    3 % ...
    4 \begin{figure}[H]
    5 % ...
    6 \label{fig1}
    7 \end{figure}
    8 % ...
    9 \ref{fig1}

     Latex 方程组:

    1 \begin{equation}
    2 f(x)=\left\{
    3 \begin{aligned}
    4 \frac{d \phi_1}{dt}&=\quad3\phi_1&&+8\phi_3 \\
    5 \frac{d \phi_2}{dt}&= \quad3\phi_1&-\phi_2&+6\phi_3 \\
    6 \frac{d \phi_3}{dt}&=-2\phi_1&&-5\phi_3
    7 \end{aligned}
    8 \right.
    9 \end{equation}
  • 相关阅读:
    AOP概述
    AOP-动态代理
    IOC容器和Bean的配置
    Spring框架概述
    异常
    Optional 类
    Stream API
    方法引用(Method References)
    函数式(Functional)接口
    stm8笔记1-搭建工程+孤独的小灯闪烁
  • 原文地址:https://www.cnblogs.com/blueprintf/p/7808213.html
Copyright © 2020-2023  润新知