Skip to main content
11 events
when toggle format what by license comment
Dec 8, 2016 at 8:40 comment added Mico @DavidCarlisle - Thanks! FWIW, I did test the example code without the % line terminators prior to posting the answer, to make sure that all 3 graph would indeed show up in one row, using the default text width (345pt) of the article document class with 10pt as the main font size. Of course, if \textwidth were set to a smaller value, it would definitely become necessary to use the %device to prevent LaTeX from inserting extra spaces. Since we can't know how the example code might get used by future readers, it's definitely a good idea to feature the % symbols.
Dec 7, 2016 at 23:44 comment added GuM @bers: … or rather, \hspace{\stretch{.2}} and \hspace{\stretch{.35}}.
Dec 7, 2016 at 23:20 comment added bers Another comment for those who would like to use different spacings, such as \hspace{0.02\linewidth} and \hspace{0.035\linewidth}: use \hfill\hfill\hfill\hfill and \hfill\hfill\hfill\hfill\hfill\hfill\hfill.
Dec 7, 2016 at 23:13 comment added bers For anyone interested: One simple example to try, e.g., in MATLAB, is 0.1+0.1+0.1-0.3, which equals 5.5511e-17 (from stackoverflow.com/questions/249467/…)
Dec 7, 2016 at 23:09 history edited Mico CC BY-SA 3.0
rephrased one expression
Dec 7, 2016 at 22:52 comment added David Carlisle you need just \hfill (hence the %) as there is not room for two word spaces)
Dec 7, 2016 at 22:51 history edited Mico CC BY-SA 3.0
added 1 character in body
Dec 7, 2016 at 22:50 history edited David Carlisle CC BY-SA 3.0
added 3 characters in body
Dec 7, 2016 at 22:50 comment added bers I would like to upvote twice: once for the explanation, and once for the workaround with \hfill!
Dec 7, 2016 at 22:50 vote accept bers
Dec 7, 2016 at 22:47 history answered Mico CC BY-SA 3.0