Advertisement
Guest User

Untitled

a guest
Feb 19th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.91 KB | None | 0 0
  1. an a4 paper
  2. _______________________________________________
  3. | _______________ |
  4. | | | |
  5. | desc | a figure | desc |
  6. | |_____________| |
  7. | _______________ |
  8. | | | |
  9. | desc | a figure | desc |
  10. | |_____________| |
  11. | _______________ |
  12. | | | |
  13. | desc | a figure | desc |
  14. | |_____________| |
  15. | _______________ |
  16. | | | |
  17. | desc | a figure | desc |
  18. | |_____________| |
  19. | 0 5 15 30 min |
  20. | |
  21. | Figure 1: A caption |
  22. | |
  23. | |
  24. | |
  25. |_____________________________________________|
  26.  
  27. begin{tabularx}{textwidth}{XlMl}
  28. multicolumn{2}{p{.333textwidth}}{} \
  29. &Ip EphA2 Wb PTEN &includegraphics[width=4cm]{gfx/blots/test.png} & -- SI{100}{kilodalton} \
  30. end{tabularx}
  31.  
  32. documentclass[11pt]{article}
  33. usepackage{blindtext}
  34. usepackage[]{auto-pst-pdf}
  35. usepackage{psfrag}
  36. begin{document}
  37. blindtext
  38. begin{figure}[bth]
  39. footnotesize
  40. psfragfig{gfx/test}
  41. caption{Some Blots.}
  42. label{fig:blot}
  43. end{figure}
  44. end{document}
  45.  
  46. psfrag{1}[br]{IP EphA2 WB EphA2}
  47. psfrag{2}[br]{IP NHERF1 WB Cbl}
  48. psfrag{3}[br]{IP pPTEN WB pTyr}
  49. psfrag{4}[br]{IP EphA2 WB NHERF1}
  50. psfrag{a}[bl]{-- SI{110}{kilodalton}}
  51. psfrag{b}[bl]{-- SI{120}{kilodalton}}
  52. psfrag{c}[bl]{-- SI{130}{kilodalton}}
  53. psfrag{d}[bl]{-- SI{140}{kilodalton}}
  54. psfrag{w}[l]{0}
  55. psfrag{x}[l]{5}
  56. psfrag{y}[l]{15}
  57. psfrag{z}[l]{30}
  58.  
  59. documentclass{scrartcl}
  60. usepackage{array}
  61. usepackage{showframe}
  62. usepackage{tabularx}
  63. usepackage{siunitx}
  64. usepackage{graphicx}
  65. newcolumntype{y}{>{centeringarraybackslash}X}
  66. newcolumntype{M}{>{centeringarraybackslash}m{4cm}}
  67. begin{document}
  68. begin{figure}
  69. centering
  70. begin{tabularx}{linewidth}{lMX}
  71. {begin{tabularx}{.333textwidth}{Xl}&Ip EphA2 Wb pPTEN\end{tabularx}}&includegraphics[width=4cm]{gfx/blots/test.png} &-- SI{110}{kilodalton} \
  72. &{begin{tabularx}{4cm}{yyyy}0 & 5 & 15 & 30end{tabularx}} & min \
  73. end{tabularx}
  74. caption{Some Blots}
  75. end{figure}
  76. end{document}
  77.  
  78. documentclass[11pt]{scrartcl}
  79. usepackage{blindtext}
  80. usepackage{tabularx}
  81. usepackage{array}
  82. usepackage{multirow}
  83. usepackage{graphicx}
  84. usepackage{showframe}
  85. newcolumntype{y}{@{}>{centeringarraybackslash}X@{}}
  86. newcolumntype{M}{@{}>{centeringarraybackslash}m{4cm}@{}}
  87. begin{document}
  88. blindtext
  89. begin{figure}
  90. centering
  91. begin{tabular}{l@{ }M@{ }l}
  92. Ip EphA2 Wb PTEN &includegraphics[width=4cm]{gfx/blots/test.png} & -- SI{100}{kilodalton} \
  93. &{begin{tabularx}{4cm}{yyyy}
  94. 0 & 5 & 15 & 30
  95. end{tabularx}} & min \
  96. end{tabular}
  97. caption{Some Blots}
  98. label{fig:ppf}
  99. end{figure}
  100. end{document}
  101.  
  102. documentclass{article}
  103. usepackage{graphicx}
  104. usepackage{array}
  105. usepackage{tabularx}
  106. newcolumntype{C}{%
  107. >{llapbgroup}c<{egrouphskip 1em}%
  108. @{}>{$vcenterbgrouphboxbgroup}c<{egroupegroup$}@{}
  109. >{hskip 1emhbox to 0ptbgroup}c<{egroup}%
  110. }%
  111.  
  112. newcommand{myblotsize}{3cm} %devine blotsize
  113. newcommand{myblot}[1]{includegraphics[width=myblotsize]{#1}}
  114. newcolumntype{y}{%
  115. @{}>{$vcenterbgroupcenteringbgroup}X<{egroupegroup$}@{}
  116. }%
  117. newcommand{stimulation}[4]{%
  118. &begingroup
  119. begin{tabularx}{myblotsize}{yyyy}
  120. #1 & #2 & #3 & #4\
  121. end{tabularx}endgroup
  122. &min
  123. } %
  124. begin{document}
  125. begin{figure}
  126. small
  127. centering
  128. renewcommandarraystretch{2}
  129. begin{tabular}{C}
  130. IP EphA2 WB EphA2 &myblot{gfx/test} &-- 130 kDa \
  131. IP EphA2 WB pPTEN &myblot{gfx/test} &-- 54 kDa \
  132. IP EphA2 WB PTEN &myblot{gfx/test} &-- 54 kDA \
  133. IP EphA2 WB Cbl &myblot{gfx/test} &-- 118 kDa \
  134. stimulation{--}{5}{15}{30} end{tabular}
  135. caption{A caption}
  136. label{fig:figure1}
  137. end{figure}
  138. end{document}
  139.  
  140. documentclass{article}
  141. newcommand{myblotsize}{4cm} %Change the width of all blots in the document here
  142. newcommand{myblottextsize}{scriptsize} %tiny, scriptsize, footnotesize, small, normalsize
  143. newlengthwidestLeftEntryLength %needed for left alignment of left describtion
  144. usepackage{graphicx}
  145. usepackage{array}
  146. usepackage{booktabs} %better management of spaze between rows
  147. usepackage{tabularx} %already loaded previously
  148. newcolumntype{C}{% blotcolumns centered on blot
  149. % >{llapbgroup}c<{hskip 1emegroup} %right alignment of left describtion ATTENTION to hskip 3.2 in last column
  150. @{}>{llapbgrouphbox to widestLeftEntryLengthbgroup}c<{hssegroupegroup}@{}%left alignment of left describtion
  151. @{}>{$vcenterbgrouphboxbgroup}c<{egroupegroup$}@{}
  152. @{}>{hskip 3.2pthbox to 0ptbgroup}c<{egroup}@{}%
  153. }%
  154. newcommand{myblot}[3]{#1&includegraphics[width=myblotsize,]{#2}&-- SI{#3}{kilodalton}\}
  155. newcolumntype{y}{%
  156. @{}>{$vcenterbgroupcenteringbgroup}X<{egroupegroup$}@{}
  157. }%
  158. newcommand{stimulation}[4]{%
  159. &begingroup
  160. begin{tabularx}{myblotsize}{yyyy}
  161. #1 & #2 & #3 & #4\
  162. end{tabularx}endgroup
  163. &min
  164. } %
  165. begin{document}
  166. centeringrule{myblotsize}{3pt} %test the horizontal alignment of the following table
  167. begin{figure}
  168. myblottextsize
  169. centering
  170. settowidthwidestLeftEntryLength{IP EphA2 WB pPTENhskip 3pt} %
  171. begin{tabular}{C}
  172. myblot{IP EphA2 WB EphA2}{gfx/test}{130}addlinespace
  173. myblot{IP EphA2 WB pPTEN}{gfx/test}{54}addlinespace
  174. myblot{IP EphA2 WB PTEN}{gfx/test}{54}addlinespace
  175. myblot{IP EphA2 WB Cbl}{gfx/test}{118}
  176. stimulation{--}{5}{15}{30}
  177. end{tabular}
  178. caption{A caption}
  179. label{fig:figure1}
  180. end{figure}
  181. end{document}
  182.  
  183. documentclass{article}
  184. usepackage{graphics}
  185.  
  186. newcommandmyincludegraphics[1]{%
  187. ensuremath{vcenter{hbox{includegraphics{#1}}}}%
  188. }
  189.  
  190. begin{document}
  191.  
  192. begin{figure}
  193. centering
  194. renewcommandarraystretch{3}
  195. begin{tabular}{rcl}
  196. description&myincludegraphics{gfx/test}&description\
  197. description&myincludegraphics{gfx/test}&description\
  198. description&myincludegraphics{gfx/test}&description\
  199. description&myincludegraphics{gfx/test}&description\
  200. &0hfill 5hfillhfill 15hfillhfillhfill 30&min
  201. end{tabular}
  202. caption{A caption}
  203. label{fig:figure}
  204. end{figure}
  205.  
  206. end{document}
  207.  
  208. documentclass{article}
  209. usepackage{graphicx}
  210. usepackage{array}
  211. newcolumntype{C}{%
  212. >{llapbgroup}c<{egroup}%
  213. >{$vcenterbgrouphboxbgroup}c<{egroupegroup$}
  214. >{hbox to 0ptbgroup}c<{egroup}%
  215. }%
  216. newcommandtimeline[1]{&multicolumn{1}{c}{#1}&min}
  217.  
  218. begin{document}
  219. begin{figure}
  220. centering
  221. renewcommandarraystretch{3}
  222. begin{tabular}{C}
  223. description long&includegraphics{gfx/test}&desc\
  224. description&includegraphics{gfx/test}&description very very extremely long\
  225. description&includegraphics{gfx/test}&desc\
  226. description&includegraphics{gfx/test}&descript\
  227. timeline{0hfill 5hfillhfill 15hfillhfillhfill 30}
  228. end{tabular}
  229. caption{A caption}
  230. label{fig:figure1}
  231. end{figure}
  232.  
  233. begin{figure}
  234. centering
  235. renewcommandarraystretch{3}
  236. begin{tabular}{C}
  237. description long&includegraphics{gfx/test}&desc\
  238. description very very extremely long&includegraphics{gfx/test}&desc\
  239. description&includegraphics{gfx/test}&desc\
  240. description&includegraphics{gfx/test}&descript\
  241. timeline{%
  242. makebox[0pt][c]{0}hfill
  243. makebox[0pt][c]{5}hfillhfill
  244. makebox[0pt][c]{15}hfillhfillhfill
  245. makebox[0pt][c]{30}}
  246. end{tabular}
  247. caption{A caption}
  248. label{fig:figure2}
  249. end{figure}
  250.  
  251. end{document}
  252.  
  253. documentclass{article}
  254. usepackage{graphicx}
  255. usepackage{array}
  256. newcolumntype{C}{%
  257. >{llapbgroup}c<{egrouphskip 1em}%
  258. @{}>{$vcenterbgrouphboxbgroup}c<{egroupegroup$}@{}
  259. >{hskip 1emhbox to 0ptbgroup}c<{egroup}%
  260. }%
  261. usepackage{etoolbox}
  262. newcommandtimeline[1]{%
  263. &multicolumn{1}{@{}c@{}}begingroup
  264. globalletdofirstT
  265. docsvlist{#1}%
  266. endgroup&min%
  267. }
  268. deffirstT#1{makebox[0pt][c]{#1}xdefpreviousT{#1}globalletdootherTs}
  269. defotherTs#1{%
  270. count0=#1relax advancecount0-previousTrelax
  271. loopifnumcount0>0 typeout{thecount0}advancecount0-1 hfillrepeat
  272. makebox[0pt][c]{#1}xdefpreviousT{#1}%
  273. }
  274.  
  275. begin{document}
  276. begin{figure}
  277. centering
  278. renewcommandarraystretch{3}
  279. begin{tabular}{C}
  280. description long&includegraphics{gfx/test}&desc\
  281. description&includegraphics{gfx/test}&description very very extremely long\
  282. description&includegraphics{gfx/test}&desc\
  283. description&includegraphics{gfx/test}&descript\
  284. timeline{0,5,15,30}\
  285. timeline{0,10,20,30}\
  286. timeline{0,20,25,30}\
  287. end{tabular}
  288. caption{A caption}
  289. label{fig:figure1}
  290. end{figure}
  291.  
  292. begin{figure}
  293. centering
  294. renewcommandarraystretch{3}
  295. begin{tabular}{C}
  296. description long&includegraphics{gfx/test}&desc\
  297. description very very extremely long&includegraphics{gfx/test}&description\
  298. description&includegraphics{gfx/test}&desc\
  299. description&includegraphics{gfx/test}&descript\
  300. timeline{0,2,4,6,8,10,20,30}
  301. end{tabular}
  302. caption{A caption}
  303. label{fig:figure1}
  304. end{figure}
  305.  
  306. end{document}
  307.  
  308. documentclass{article}
  309. usepackage{graphicx}
  310. usepackage{array}
  311. newlengthwidestLeftEntryLength
  312. newcolumntype{C}{%
  313. >{llapbgrouphbox to widestLeftEntryLengthbgroup}c<{hssegroupegrouphskip 1em}%
  314. @{}>{$vcenterbgrouphboxbgroup}c<{egroupegroup$}@{}
  315. >{hskip 1emhbox to 0ptbgroup}c<{egroup}%
  316. }%
  317.  
  318. begin{document}
  319. begin{figure}
  320. centering
  321. renewcommandarraystretch{3}
  322. settowidthwidestLeftEntryLength{description very very extremely long}
  323. begin{tabular}{C}
  324. description long&includegraphics{gfx/test}&desc\
  325. description very very extremely long&includegraphics{gfx/test}&description\
  326. description&includegraphics{gfx/test}&desc\
  327. description&includegraphics{gfx/test}&descript\
  328. end{tabular}
  329. caption{A caption}
  330. label{fig:figure2}
  331. end{figure}
  332. end{document}
  333.  
  334. useMPlibrary[dum] % For dummy figures
  335.  
  336. startsetups table:align
  337. setupTABLE[frame=off]
  338. setupTABLE[column][1][align={flushright,lohi}]
  339. setupTABLE[column][2][align={middle,lohi}]
  340. setupTABLE[column][3][align={flushleft,lohi}]
  341. stopsetups
  342.  
  343.  
  344. starttext
  345.  
  346. startTABLE[setups={table:align}]
  347. NC long desc NC externalfigure[dummy][width=3cm, height=3lineheight] NC desc NC NR
  348. NC desc NC externalfigure[dummy][width=3cm, height=3lineheight] NC desc NC NR
  349. NC desc NC externalfigure[dummy][width=3cm, height=3lineheight] NC desc NC NR
  350. NC desc NC externalfigure[dummy][width=3cm, height=3lineheight] NC long desc NC NR
  351. stopTABLE
  352.  
  353. stoptext
  354.  
  355. startsetups table:align
  356. setupTABLE[frame=off]
  357. setupTABLE[column][5][align={flushleft,lohi}]
  358. setupTABLE[column][6][align={middle,lohi}]
  359. setupTABLE[column][7][align={flushleft,lohi}]
  360. stopsetups
  361.  
  362. startsetups table:align
  363. setupTABLE[frame=off]
  364. setupTABLE[column][9][align={flushright,lohi}, width=broad]
  365. setupTABLE[column][10][align={middle,lohi}, width=fit,]
  366. setupTABLE[column][11][align={flushleft,lohi}, width=broad]
  367. stopsetups
  368.  
  369. startsetups table:align
  370. setupTABLE[frame=off]
  371. setupTABLE[column][13][align={flushright,broad,lohi}, width=broad]
  372. setupTABLE[column][14][align={middle,lohi}, width=fit,]
  373. setupTABLE[column][15][align={flushleft,lohi}, width=broad]
  374. stopsetups
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement