以下範例是將方程式的某些數學符號從黑色換成其他顏色,可以用來強調方程式中改變的地方或想強調的地方。


Example:

Screen Shot 2017-09-12 at 1.12.45 AM.png

Code:

Screen Shot 2017-09-12 at 1.14.29 AM.png


\documentclass{article}
\usepackage[usenames, dvipsnames]{color}

\definecolor{myred}{RGB}{255, 0, 0}
\definecolor{mygreen}{RGB}{0, 255, 0}

文章標籤

ytl0821 發表在 痞客邦 留言(0) 人氣()

準備一個makefile來自動編譯程式,如以下範例:


# Step (1) define the variables
CC = gcc
ex = example_

# Step (2) compile the c codes
#all: example_1 example_2 example_3 example_4 example_5
all: $(ex)1 $(ex)2 $(ex)3 $(ex)4 $(ex)5

# Step (3)
example_1: $(ex)1/FileReader_ex01.o
    $(CC) $(ex)1/FileReader_ex01.c -lm -o $(ex)1/FileReader_ex01

ytl0821 發表在 痞客邦 留言(0) 人氣()

Online LaTeX websites:
[1] Overleaf : https://www.overleaf.com/

[2] Share LaTeX : https://www.sharelatex.com/

Math Symbols:

[1] LaTeX Math Symbols : http://web.ift.uib.no/Teori/KURS/WRK/TeX/symALL.html

Equations:

[1] Online LaTeX Equation : https://www.codecogs.com/latex/eqneditor.php


文章標籤

ytl0821 發表在 痞客邦 留言(0) 人氣()

Case 1:

x1.png


Code:

\documentclass[12pt,a4paper]{article}
 
\usepackage{stackengine}

% define link-line - start -
\stackMath
\def\rldp{2.0ex}
\def\rlht{1.0ex}

文章標籤

ytl0821 發表在 痞客邦 留言(0) 人氣()

LaTeX sample for exercise:

(此練習用LaTeX的物理習題是源自於「Interacting electrons」(Authors: Martin, Reining, and Ceperiey.)裡第六章第八題。)

ex.6.8_1

Screen Shot 2017-09-11 at 9.08.55 PM.png


\documentclass[12pt,a4paper]{article}
 
\usepackage[margin=1in]{geometry}
\usepackage{amsmath,amsthm,amssymb,physics}

\geometry{left=1.7cm,right=1.7cm,top=1.7cm,bottom=1.7cm}
 

文章標籤

ytl0821 發表在 痞客邦 留言(0) 人氣()