以下範例是將方程式的某些數學符號從黑色換成其他顏色,可以用來強調方程式中改變的地方或想強調的地方。
Example:
Code:
\documentclass{article}
\usepackage[usenames, dvipsnames]{color}
\definecolor{myred}{RGB}{255, 0, 0}
\definecolor{mygreen}{RGB}{0, 255, 0}
以下範例是將方程式的某些數學符號從黑色換成其他顏色,可以用來強調方程式中改變的地方或想強調的地方。
Example:
Code:
\documentclass{article}
\usepackage[usenames, dvipsnames]{color}
\definecolor{myred}{RGB}{255, 0, 0}
\definecolor{mygreen}{RGB}{0, 255, 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
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
Case 1:
Code:
\documentclass[12pt,a4paper]{article}
\usepackage{stackengine}
% define link-line - start -
\stackMath
\def\rldp{2.0ex}
\def\rlht{1.0ex}
LaTeX sample for exercise:
(此練習用LaTeX的物理習題是源自於「Interacting electrons」(Authors: Martin, Reining, and Ceperiey.)裡第六章第八題。)
\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}