[心得] 使用color package可用的顏色

看板LaTeX作者 (pentiumevo)時間13年前 (2011/02/02 22:10), 編輯推噓4(400)
留言4則, 3人參與, 最新討論串1/1
在對岸CTeX討論版看到一篇有用的資訊 特po於此與大家分享 1. \documentclass{article} 2. \usepackage[dvipsnames,usenames]{color} 3. \begin{document} 4. \textcolor{GreenYellow}{GreenYellow} 5. \textcolor{Yellow}{Yellow} 6. \textcolor{Goldenrod}{Goldenrod} 7. \textcolor{Dandelion}{Dandelion} 8. \textcolor{Apricot}{Apricot} 9. \textcolor{Peach}{Peach} 10. \textcolor{Melon}{Melon} 11. \textcolor{YellowOrange}{YellowOrange} 12. \textcolor{Orange}{Orange} 13. \textcolor{BurntOrange}{BurntOrange} 14. \textcolor{Bittersweet}{Bittersweet} 15. \textcolor{RedOrange}{RedOrange} 16. \textcolor{Mahogany}{Mahogany} 17. \textcolor{Maroon}{Maroon} 18. \textcolor{BrickRed}{BrickRed} 19. \textcolor{Red}{Red} 20. \textcolor{OrangeRed}{OrangeRed} 21. \textcolor{RubineRed}{RubineRed} 22. \textcolor{WildStrawberry}{WildStrawberry} 23. \textcolor{Salmon}{Salmon} 24. \textcolor{CarnationPink}{CarnationPink} 25. \textcolor{Magenta}{Magenta} 26. \textcolor{VioletRed}{VioletRed} 27. \textcolor{Rhodamine}{Rhodamine} 28. \textcolor{Mulberry}{Mulberry} 29. \textcolor{RedViolet}{RedViolet} 30. \textcolor{Fuchsia}{Fuchsia} 31. \textcolor{Lavender}{Lavender} 32. \textcolor{Thistle}{Thistle} 33. \textcolor{Orchid}{Orchid} 34. \textcolor{DarkOrchid}{DarkOrchid} 35. \textcolor{Purple}{Purple} 36. \textcolor{Plum}{Plum} 37. \textcolor{Violet}{Violet} 38. \textcolor{RoyalPurple}{RoyalPurple} 39. \textcolor{BlueViolet}{BlueViolet} 40. \textcolor{Periwinkle}{Periwinkle} 41. \textcolor{CadetBlue}{CadetBlue} 42. \textcolor{CornflowerBlue}{CornflowerBlue} 43. \textcolor{MidnightBlue}{MidnightBlue} 44. \textcolor{NavyBlue}{NavyBlue} 45. \textcolor{RoyalBlue}{RoyalBlue} 46. \textcolor{Blue}{Blue} 47. \textcolor{Cerulean}{Cerulean} 48. \textcolor{Cyan}{Cyan} 49. \textcolor{ProcessBlue}{ProcessBlue} 50. \textcolor{SkyBlue}{SkyBlue} 51. \textcolor{Turquoise}{Turquoise} 52. \textcolor{TealBlue}{TealBlue} 53. \textcolor{Aquamarine}{Aquamarine} 54. \textcolor{BlueGreen}{BlueGreen} 55. \textcolor{Emerald}{Emerald} 56. \textcolor{JungleGreen}{JungleGreen} 57. \textcolor{SeaGreen}{SeaGreen} 58. \textcolor{Green}{Green} 59. \textcolor{ForestGreen}{ForestGreen} 60. \textcolor{PineGreen}{PineGreen} 61. \textcolor{LimeGreen}{LimeGreen} 62. \textcolor{YellowGreen}{YellowGreen} 63. \textcolor{SpringGreen}{SpringGreen} 64. \textcolor{OliveGreen}{OliveGreen} 65. \textcolor{RawSienna}{RawSienna} 66. \textcolor{Sepia}{Sepia} 67. \textcolor{Brown}{Brown} 68. \textcolor{Tan}{Tan} 69. \textcolor{Gray}{Gray} 70. \textcolor{Black}{Black} 71. \colorbox{black}{\textcolor{White}{White}} 72. \end{document} -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 125.233.18.205

02/02 22:15, , 1F
\definecolor{mycolorname}{RGB}{r,g,b} %r,g,b [0,255]
02/02 22:15, 1F

02/03 13:41, , 2F
rgb數值不是要除過255,0到1?
02/03 13:41, 2F

02/03 14:53, , 3F
我給的用法不用除
02/03 14:53, 3F

02/18 00:26, , 4F
\newcommand{\xq}[1]{\textcolor{red}{#1}} 也可以呦
02/18 00:26, 4F
文章代碼(AID): #1DIMM-y5 (LaTeX)