在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):linktohack/ox-latex-subfigure开源软件地址(OpenSource Url):https://github.com/linktohack/ox-latex-subfigure开源编程语言(OpenSource Language):Emacs Lisp 81.3%开源软件介绍(OpenSource Introduction):How(package-initialize)
(use-package ox-latex-subfigure
:init
(setq org-latex-prefer-user-labels t)
:load-path "~/Dropbox/ProjectWeekends/lisp/ox-latex-subfigure/"
:config (require 'ox-latex-subfigure))
; (add-to-list 'org-latex-caption-above 'subfigure) ; If you want the caption above the figure #+LATEX_HEADER: \usepackage{subcaption}
#+NAME: fig:hello
#+CAPTION: Use figure/subfigure instead of tabular, remember to set =:environment=
#+ATTR_LATEX: :environment subfigure :width 0.4\textwidth :align c
| [[~/Desktop/figure_1.png]] | <<fig:hello_subfigure>> tttttt |
| zzzzz | [[~/Desktop/figure_1.png]] |
Ordinary linking works as usual \begin{figure}[!htb]
\centering
\begin{subfigure}[c]{0.4\textwidth}
\includegraphics[width=.9\linewidth]{/Users/link/Desktop/figure_1.png}
\caption{zzzzz}
\end{subfigure}
\begin{subfigure}[c]{0.4\textwidth}
\includegraphics[width=.9\linewidth]{/Users/link/Desktop/figure_1.png}
\caption{\label{fig:hello_subfigure} tttttt}
\end{subfigure}
\caption{\label{fig:hello}
Use figure/subfigure instead of tabular, remember to set \texttt{:environment}}
\end{figure} ContributionRequire tools for testing
Running testBelow operation flow is recommended. make # Install git-hooks in local .git
git branch [feature-branch] # Create branch named [feature-branch]
git checkout [feature-branch] # Checkout branch named [feature-branch]
# <edit loop>
emacs ox-latex-subfigure.el # Edit something you want
make test # Test ox-latex-subfigure via multi version Emacs
git commit -am "brabra" # Commit (auto-run test before commit)
# </edit loop>
hub fork # Create fork at GitHub
git push [user] [feature-branch] # Push feature-branch to your fork
hub pull-request # Create pull-request Contributions
LicenseGPL |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论