[O] Vertically aligning table row contents
I'm trying to create a simple two-column table. The left column will show images of symbols used in the document, and the right column will explain what those images mean. So far, I have --8---cut here---start-8--- #+MACRO: p \includegraphics[scale=.35]{$1} #+CAPTION: Document Symbols #+ATTR_LATEX: :align lp{5in} :float nil :border 2 :frame border | {{{p(./GreenDot.png)}}} | This symbol indicates that the associated item is in a /normal/ or /successful/ state. | | {{{p(./YellowDots.png)}}} | This symbol denotes a state of /concern/ or /potential trouble/ for the associated item. | | {{{p(./RedDots.png)}}} | This symbol indicates that the associated item is in a /severely troubled/ or /non-functioning/ state. | --8---cut here---end---8--- But what I'm getting is: misaligned table Is there a way to get both columns centered? Thank you. -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
Re: [O] Vertically aligning table row contents
On 1/6/15 7:14 PM, John Hendy wrote: On Jan 6, 2015 5:52 PM, Peter Davis p...@pfdstudio.com mailto:p...@pfdstudio.com wrote: I'm trying to create a simple two-column table. The left column will show images of symbols used in the document, and the right column will explain what those images mean. So far, I have --8---cut here---start-8--- #+MACRO: p \includegraphics[scale=.35]{$1} #+CAPTION: Document Symbols #+ATTR_LATEX: :align lp{5in} :float nil :border 2 :frame border | {{{p(./GreenDot.png)}}} | This symbol indicates that the associated item is in a /normal/ or /successful/ state. | | {{{p(./YellowDots.png)}}} | This symbol denotes a state of /concern/ or /potential trouble/ for the associated item. | | {{{p(./RedDots.png)}}} | This symbol indicates that the associated item is in a /severely troubled/ or /non-functioning/ state. | --8---cut here---end---8--- But what I'm getting is: Is there a way to get both columns centered? Assuming you mean vertically? Yes, I did mean vertically. Sorry. -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
Re: [O] Vertically aligning table row contents
On Jan 6, 2015 5:52 PM, Peter Davis p...@pfdstudio.com wrote: I'm trying to create a simple two-column table. The left column will show images of symbols used in the document, and the right column will explain what those images mean. So far, I have --8---cut here---start-8--- #+MACRO: p \includegraphics[scale=.35]{$1} #+CAPTION: Document Symbols #+ATTR_LATEX: :align lp{5in} :float nil :border 2 :frame border | {{{p(./GreenDot.png)}}} | This symbol indicates that the associated item is in a /normal/ or /successful/ state. | | {{{p(./YellowDots.png)}}} | This symbol denotes a state of /concern/ or /potential trouble/ for the associated item. | | {{{p(./RedDots.png)}}} | This symbol indicates that the associated item is in a /severely troubled/ or /non-functioning/ state. | --8---cut here---end---8--- But what I'm getting is: Is there a way to get both columns centered? Assuming you mean vertically? John Thank you. -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
Re: [O] Vertically aligning table row contents
The top three Google hits for align images and text table latex seem helpful. The first two suggest \raisebox. Hopefully they help! John On Tue, Jan 6, 2015, 6:16 PM Peter Davis p...@pfdstudio.com wrote: On 1/6/15 7:14 PM, John Hendy wrote: On Jan 6, 2015 5:52 PM, Peter Davis p...@pfdstudio.com wrote: I'm trying to create a simple two-column table. The left column will show images of symbols used in the document, and the right column will explain what those images mean. So far, I have --8---cut here---start-8--- #+MACRO: p \includegraphics[scale=.35]{$1} #+CAPTION: Document Symbols #+ATTR_LATEX: :align lp{5in} :float nil :border 2 :frame border | {{{p(./GreenDot.png)}}} | This symbol indicates that the associated item is in a /normal/ or /successful/ state. | | {{{p(./YellowDots.png)}}} | This symbol denotes a state of /concern/ or /potential trouble/ for the associated item. | | {{{p(./RedDots.png)}}} | This symbol indicates that the associated item is in a /severely troubled/ or /non-functioning/ state. | --8---cut here---end---8--- But what I'm getting is: Is there a way to get both columns centered? Assuming you mean vertically? Yes, I did mean vertically. Sorry. -pd -- Peter Davis The Tech Curmudgeonwww.techcurmudgeon.com
Re: [O] Vertically aligning table row contents
On 1/6/15 7:19 PM, John Hendy wrote: The top three Google hits for align images and text table latex seem helpful. The first two suggest \raisebox. Hopefully they help! John Thanks, John. Is there an org-mode way to do this? Thank you. -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
Re: [O] Vertically aligning table row contents
Peter Davis p...@pfdstudio.com writes: Maybe that's the right track, but the obvious solution doesn't seem to work: --8---cut here---start-8--- #+MACRO: p \raisebox{-.5\height}{\includegraphics[scale=.35]{$1}} Try #+MACRO: p @@latex:\raisebox{-.5\height}{\includegraphics[scale=.35]{$1}}@@ See (info (org) Quoting LaTeX code) #+CAPTION: Document Symbols #+ATTR_LATEX: :align lp{5in} :float nil :border 2 :frame border | {{{p(./GreenDot.png)}}} | This symbol indicates that the associated item is in a /normal/ or /successful/ state. | | {{{p(./YellowDots.png)}}} | This symbol denotes a state of /concern/ or /potential trouble/ for the associated item. | | {{{p(./RedDots.png)}}}| This symbol indicates that the associated item is in a /severely troubled/ or /non-functioning/ state. | --8---cut here---end---8--- Nick
Re: [O] Vertically aligning table row contents
On 1/6/15 9:33 PM, Nick Dokos wrote: Peter Davis p...@pfdstudio.com writes: Maybe that's the right track, but the obvious solution doesn't seem to work: --8---cut here---start-8--- #+MACRO: p \raisebox{-.5\height}{\includegraphics[scale=.35]{$1}} Try #+MACRO: p @@latex:\raisebox{-.5\height}{\includegraphics[scale=.35]{$1}}@@ See (info (org) Quoting LaTeX code) That's it! I'm afraid the original macro definition was taken from an earlier response on this list, and I used it without totally understanding its details. Thank you! -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
Re: [O] Vertically aligning table row contents
On Jan 6, 2015 7:00 PM, Peter Davis p...@pfdstudio.com wrote: On 1/6/15 7:19 PM, John Hendy wrote: The top three Google hits for align images and text table latex seem helpful. The first two suggest \raisebox. Hopefully they help! John Thanks, John. Is there an org-mode way to do this? I've not used macros, but could you just add the raisebox code to it? Like ... \raisebox{0.5\height}{\includegraphics[...]{$1} instead of the current? Just a stab in the dark as I'm unfamiliar with you org tackle code and the latex solution! John Thank you. -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
Re: [O] Vertically aligning table row contents
On 1/6/15 8:15 PM, John Hendy wrote: On Jan 6, 2015 7:00 PM, Peter Davis p...@pfdstudio.com mailto:p...@pfdstudio.com wrote: On 1/6/15 7:19 PM, John Hendy wrote: The top three Google hits for align images and text table latex seem helpful. The first two suggest \raisebox. Hopefully they help! John Thanks, John. Is there an org-mode way to do this? I've not used macros, but could you just add the raisebox code to it? Like ... \raisebox{0.5\height}{\includegraphics[...]{$1} instead of the current? Just a stab in the dark as I'm unfamiliar with you org tackle code and the latex solution! John Maybe that's the right track, but the obvious solution doesn't seem to work: --8---cut here---start-8--- #+MACRO: p \raisebox{-.5\height}{\includegraphics[scale=.35]{$1}} #+CAPTION: Document Symbols #+ATTR_LATEX: :align lp{5in} :float nil :border 2 :frame border | {{{p(./GreenDot.png)}}} | This symbol indicates that the associated item is in a /normal/ or /successful/ state. | | {{{p(./YellowDots.png)}}} | This symbol denotes a state of /concern/ or /potential trouble/ for the associated item. | | {{{p(./RedDots.png)}}}| This symbol indicates that the associated item is in a /severely troubled/ or /non-functioning/ state. | --8---cut here---end---8--- Thank you. -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com http://www.techcurmudgeon.com -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com