0

I have the following scheme.

\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}

I get the following:

scheme

There is quite a white-space between node and arrow. I want to reduce this space so that this fits into margin for document. How to reduce this gap?

1

1 Answer 1

1

like this?

enter image description here

i redesign table. now has only one column, not two, and instead tabular* is used tabular. also i made arrows slightly shorter:

\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}

as you can see, the preamble is reorganized too. (mathtools load amsmath, and pgfplots load tikz, so it is sufficient to load only the firs packages.

4
  • Thanks. I can see the gap reduced but can't see what actually changed in the code. Does it rely on single column tabular? I found this tex.stackexchange.com/a/279354/8087 which is exactly what I was looking for.
    – Dilawar
    Commented Sep 25, 2018 at 5:20
  • @Dilawar, than wrote own answer ...
    – Zarko
    Commented Sep 25, 2018 at 5:23
  • I am sorry but I didn't mean to belittle your effort and help. I just wanted to point out the solution I found at other link was clearer to me.
    – Dilawar
    Commented Sep 25, 2018 at 5:27
  • @Dilawar, no you not belittle me. my answer still solve some (off topic) problems, which is worth to consider ... if you find solution for your main problem, than please share it with others here with answer. you can also accept it and with this emphasize its importance.
    – Zarko
    Commented Sep 25, 2018 at 5:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .