SHARE
TWEET

Untitled

a guest Jun 26th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DeclareBibliographyOption{myname}{edefsomename{#1}}
  2.      
  3. ! You can't use `macro parameter character #' in horizontal mode.
  4. @removeelement #1#2#3->def reserved@a ##1,#1,##
  5.                                                   2reserved@a {##1,##2rese...
  6.  
  7. l.59 ProcessOptionsrelax
  8.      
  9. edefx{M{"u}ller}
  10. edefy{M"uller}
  11. ifdefstrequal{x}{y}{TRUE}{FALSE}
  12.      
  13. M{"u}ller
  14. M"uller
  15. Müller
  16.      
  17. documentclass{article}
  18. usepackage[T1]{fontenc}
  19. usepackage[utf8]{inputenc}
  20. usepackage{etoolbox}
  21.  
  22. makeatletter
  23. defstripbraces#1#2{%
  24.   begingroup
  25.   defIeC##1{##1}%
  26.   protected@edef@tempa{#1}%
  27.   gdef@gtempa{}%
  28.   expandafter@stripbraces@tempa@nil
  29.   endgroup
  30.   let#2@gtempa
  31. }
  32. def@stripbraces#1{%
  33.   ifx#1@nilelse
  34.     expandaftergdefexpandafter@gtempaexpandafter{@gtempa#1}%
  35.     expandafter@stripbraces
  36.   fi
  37. }
  38.  
  39. makeatother
  40.  
  41. begin{document}
  42.  
  43. stripbraces{M"uller}{x}
  44. stripbraces{M{"u}ller}{y}
  45. stripbraces{Müller}{z}
  46.  
  47. ifdefstrequal{x}{y}{TRUE}{FALSE}
  48.  
  49. ifdefstrequal{x}{z}{TRUE}{FALSE}
  50.  
  51. ifdefstrequal{y}{z}{TRUE}{FALSE}
  52.  
  53. stripbraces{Øre}{x}
  54. stripbraces{{O}re}{y}
  55. stripbraces{O re}{z}
  56.  
  57. ifdefstrequal{x}{y}{TRUE}{FALSE}
  58.  
  59. ifdefstrequal{x}{z}{TRUE}{FALSE}
  60.  
  61. ifdefstrequal{y}{z}{TRUE}{FALSE}
  62.  
  63. stripbraces{Gauß}{x}
  64. stripbraces{Gau{ss}}{y}
  65. stripbraces{Gauss}{z}
  66.  
  67. ifdefstrequal{x}{y}{TRUE}{FALSE}
  68.  
  69. ifdefstrequal{x}{z}{TRUE}{FALSE}
  70.  
  71. ifdefstrequal{y}{z}{TRUE}{FALSE}
  72.  
  73. end{document}
  74.      
  75. newcommandtestuni{}
  76. DeclareBibliographyOption[boolean]{test-unicode}[false]{
  77. ifstrequal{#1}{𐎑𓀀ຢഓæçøûüŧũǻΦ}{renewcommandtestuni{𐎑𓀀ຢഓæçøûüŧũǻΦ has matched}}{renewcommandtestuni{𐎑𓀀ຢഓæçøûüŧũǻΦ has not matched}}
  78. }
  79.      
  80. test-unicode=𐎑𓀀ຢഓæçøûüŧũǻΦ,
  81.      
  82. Result of textbackslash testuni: {funicode testuni}.
  83.      
  84. test-unicode=𐎑𓀀ຢഓæçѾѬøûüŧũǻΦ,
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