SHARE
TWEET

Untitled

a guest Jun 24th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. documentclass[a4paper,fleqn]{cas-sc}
  2. usepackage{cite}
  3. usepackage{multirow}
  4. %usepackage[utf8x]{inputenc}
  5. usepackage{mathrsfs}
  6. usepackage{amssymb,amsthm}
  7. usepackage{caption}
  8. captionsetup[figure]{position=below, margin=1cm, labelfont=bf, labelsep=period, skip=12pt, justification=justified}
  9. usepackage{multicol}
  10. usepackage{graphicx}
  11. usepackage{subfigure}
  12. usepackage{float}
  13. usepackage{etoolbox}
  14. usepackage{booktabs}
  15. %usepackage[table]{xcolor}
  16. %usepackage{float}
  17. %usepackage[cmex10]{amsmath}
  18. %usepackage{url}
  19. usepackage[T1]{fontenc}
  20. usepackage{soul}
  21. letlabelindentrelax
  22. usepackage{enumitem}
  23. usepackage{array}
  24. usepackage{longtable}
  25. usepackage{epstopdf}
  26. %usepackage{amsmath}
  27. usepackage{textcomp}
  28. usepackage{multirow}
  29. usepackage{pdflscape}
  30. %usepackage{rotating}
  31. %restylefloat*{figure} %% create a line before and after an image
  32. floatstyle{plain}
  33. captionsetup{labelsep=space,justification=centering,singlelinecheck=on}
  34. usepackage{mathcomp}
  35. usepackage{lscape}
  36. %usepackage{float}
  37. usepackage{longtable}
  38. usepackage{lineno}
  39. setlengthcolumnsep{25pt}
  40.  
  41. newcommand{PreserveBackslash}[1]{lettemp = \#1let\ = temp}
  42. newcolumntype{C}[1]{>{PreserveBackslashcentering}p{#1}}
  43. newcolumntype{R}[1]{>{PreserveBackslashraggedleft}p{#1}}
  44. newcolumntype{L}[1]{>{PreserveBackslashraggedright}p{#1}}
  45. setcounter{page}{1}
  46. twocolumn
  47. %% %%%%%%
  48. %%% Packages to add the vertical line with in algorithm:pseudocode
  49. usepackage{algorithm}
  50. usepackage[noend]{algpseudocode}
  51. usepackage{etoolbox}
  52.  
  53. makeatletter
  54. % start with some helper code
  55. % This is the vertical rule that is inserted
  56. newcommand*{algrule}[1][algorithmicindent]{%
  57.     makebox[#1][l]{%
  58.         hspace*{.2em}% <------------- This is where the rule starts from
  59.         vrule height .75baselineskip depth .25baselineskip
  60.     }
  61. }
  62.  
  63. newcountALG@printindent@tempcnta
  64. defALG@printindent{%
  65.     ifnum theALG@nested>0% is there anything to print
  66.     ifxALG@textALG@x@notext% is this an end group without any text?
  67.     % do nothing
  68.     else
  69.     unskip
  70.     % draw a rule for each indent level
  71.     ALG@printindent@tempcnta=1
  72.     loop
  73.     algrule[csname ALG@ind@theALG@printindent@tempcntaendcsname]%
  74.     advance ALG@printindent@tempcnta 1
  75.     ifnum ALG@printindent@tempcnta<numexprtheALG@nested+1relax
  76.     repeat
  77.     fi
  78.     fi
  79. }
  80. % the following line injects our new indent handling code in place of the default spacing
  81. patchcmd{ALG@doentity}{noindenthskipALG@tlm}{ALG@printindent}{}{errmessage{failed to patch}}
  82. patchcmd{ALG@doentity}{item[]nointerlineskip}{}{}{} % no spurious vertical space
  83. % end vertical rule patch for algorithmicx
  84. makeatother
  85. usepackage{textcomp}
  86. defBibTeX{{rm Bkern-.05em{sc ikern-.025em b}kern-.08em
  87.         Tkern-.1667emlower.7exhbox{E}kern-.125emX}}
  88.  
  89. begin{document}
  90.  
  91. end{document}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top