我有以下方案。
\documentclass[crop,trim]{standalone}
\usepackage{pgfplots}
\usepackage{chemfig}
\usepackage{tikz}
\usetikzlibrary{calc,positioning}
\usepackage{amsmath,amssymb}
\usepackage{mathtools}
\usepackage[sfdefault]{FiraSans}
\usepackage[small]{eulervm}
%\usepackage{opensans}
%\usepackage{mathpazo}
\begin{document}
% Remove margins from tabular. Don't know how it works but see
% https://tex.stackexchange.com/a/116784/8087
\begin{tabular*}{5cm}{@{}l@{\extracolsep{\fill}}r@{}}
\schemestart
X \arrow{->}[0,0.75] X\textsuperscript{*}
\schemestop\label{reac:phospho}
\\
\schemestart
X\textsuperscript{*} + P \arrow{<->>}[0,0.75] X\textsuperscript{*}P
\arrow{->}[0,0.7] X + P
\schemestop\label{reac:depospho}
\end{tabular*}
\end{document}
我得到以下信息:
节点和箭头之间有相当大的空白。我想缩小这个空间,以便它适合文档的边距。如何缩小这个间隙?
答案1
像这样?
我重新设计了表格。现在只有一列,而不是两列,而是tabular*
使用tabular
。我还把箭头做得稍微短一些:
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\usetikzlibrary{calc,positioning}
\usepackage{mathtools,amssymb}
\usepackage[sfdefault]{FiraSans}
\usepackage[small]{eulervm}
\usepackage{chemfig}
\begin{document}
% Remove margins from tabular. Don't know how it works but see
% https://tex.stackexchange.com/a/116784/8087
\begin{tabular}{@{} l @{}}
\schemestart
X \arrow{->}[0,0.5] X\textsuperscript{*}
\schemestop\label{reac:phospho}
\\
\schemestart
X\textsuperscript{*} + P \arrow{<->>}[0,0.5] X\textsuperscript{*}P \arrow{->}[0,0.5] X + P%
\schemestop\label{reac:depospho}
\end{tabular}
如您所见,序言也经过了重组。(mathtools
加载amsmath
,和pgfplots
加载tikz
,因此仅加载第一个包就足够了。